Type alias SignCallback

SignCallback: ((args: SignCallbackParams) => {
    signature: string;
} | Promise<{
    signature: string;
}>)

Type declaration

    • (args: SignCallbackParams): {
          signature: string;
      } | Promise<{
          signature: string;
      }>
    • In order to use the PGP signing feature of commit, you have to provide a PGP signing callback like so:

      import { pgp } from '@isomorphic-git/pgp-plugin'
      commit({ ..., onSign: pgp.sign })

      Returns

      An 'ASCII armor' encoded "detached" signature.

      Parameters

      Returns {
          signature: string;
      } | Promise<{
          signature: string;
      }>

Generated using TypeDoc