index.d.ts 1003 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. declare module "electron-osx-sign" {
  2. interface BaseSignOptions {
  3. app: string;
  4. identity?: string;
  5. platform?: string;
  6. keychain?: string;
  7. }
  8. interface SignOptions extends BaseSignOptions {
  9. binaries?: string[];
  10. entitlements?: string;
  11. 'entitlements-inherit'?: string;
  12. 'gatekeeper-assess'?: boolean;
  13. ignore?: string;
  14. 'pre-auto-entitlements'?: boolean;
  15. 'pre-embed-provisioning-profile'?: boolean;
  16. 'provisioning-profile'?: string;
  17. 'requirements'?: string;
  18. 'type'?: string;
  19. version?: string;
  20. 'identity-validation'?: boolean;
  21. }
  22. export function sign(opts: SignOptions, callback: (error: Error) => void): void;
  23. export function signAsync(opts: SignOptions): Promise<any>;
  24. interface FlatOptions extends BaseSignOptions {
  25. install?: string;
  26. pkg?: string;
  27. scripts?: string;
  28. }
  29. export function flat(opts: FlatOptions, callback: (error: Error) => void): void;
  30. export function flatAsync(opts: FlatOptions): Promise<any>;
  31. }