Skip to content

Commit 4ec6e1f

Browse files
committed
Add ambient defs
1 parent 69d7351 commit 4ec6e1f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

ambient.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
interface ToBase64Options {
2+
alphabet?: 'base64' | 'base64url'
3+
omitPadding?: boolean
4+
}
5+
6+
interface FromBase64Options {
7+
alphabet?: 'base64' | 'base64url'
8+
lastChunkHandling?: 'loose' | 'strict'
9+
}
10+
11+
interface Uint8Array {
12+
toBase64(options?: ToBase64Options): string
13+
}
14+
15+
interface Uint8ArrayConstructor {
16+
fromBase64(str: string, options?: FromBase64Options): Uint8Array
17+
}

0 commit comments

Comments
 (0)