diff --git a/src/client/postback/namespace.ts b/src/client/postback/namespace.ts deleted file mode 100644 index c4b3882..0000000 --- a/src/client/postback/namespace.ts +++ /dev/null @@ -1,20 +0,0 @@ -declare module 'pagarme' { - export namespace client { - export namespace postback { - function calculateSignature( - /** the keys used to sign the hash. */ - key: string, - /** The string to be hashed. */ - string: string - ): string; - function verifySignature( - /** the keys used to sign the hash. */ - key: string, - /** The string to be hashed. */ - string: string, - /** The expected result. */ - expected: string - ): boolean; - } - } -} diff --git a/src/index.ts b/src/index.ts index 634cb9d..86d1ad6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,7 +18,7 @@ /// /// /// -/// +/// /// /// /// diff --git a/src/postback/namespace.ts b/src/postback/namespace.ts new file mode 100644 index 0000000..5541e45 --- /dev/null +++ b/src/postback/namespace.ts @@ -0,0 +1,18 @@ +declare module 'pagarme' { + export namespace postback { + function calculateSignature( + /** the keys used to sign the hash. */ + key: string, + /** The string to be hashed. */ + string: string + ): string; + function verifySignature( + /** the keys used to sign the hash. */ + key: string, + /** The string to be hashed. */ + string: string, + /** The expected result. */ + expected: string + ): boolean; + } +}