-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add typescript bindings to the encoder
This is a beta test addressing issue #43 for testing. It adds typescript bindings in a index.d.ts file.
- Loading branch information
1 parent
f86650c
commit e1cd754
Showing
7 changed files
with
64 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
coverage | ||
CHANGELOG.md | ||
CHANGELOG.md | ||
*.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Manually generated from https://www.typescriptlang.org/play | ||
|
||
export class AlphanumericEncoder { | ||
constructor(configOptions?: { | ||
allowLowerCaseDictionary: boolean | undefined | ||
dictionary: string | undefined | ||
}) | ||
private _defaultDictionary | ||
private _dictionaryInUse | ||
private _allowLowerCaseDictionary | ||
|
||
set allowLowerCaseDictionary(arg: boolean) | ||
get allowLowerCaseDictionary(): boolean | ||
|
||
set dictionary(arg: string) | ||
get dictionary(): string | ||
|
||
resetDefaultDictionary(): void | ||
|
||
encode(integerToEncode: number): string | ||
|
||
decode(stringToDecode: string): number | ||
|
||
deconstruct(stringToDeconstruct: string | number): number[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.