Skip to content

Commit

Permalink
chore: recompile types
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Sep 11, 2023
1 parent a1bd349 commit 06133db
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 9 deletions.
3 changes: 2 additions & 1 deletion types/cborg.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ export type DecodeOptions = import('./interface').DecodeOptions;
*/
export type EncodeOptions = import('./interface').EncodeOptions;
import { decode } from './lib/decode.js';
import { decodeFirst } from './lib/decode.js';
import { encode } from './lib/encode.js';
import { Token } from './lib/token.js';
import { Type } from './lib/token.js';
export { decode, encode, Token, Type };
export { decode, decodeFirst, encode, Token, Type };
//# sourceMappingURL=cborg.d.ts.map
2 changes: 1 addition & 1 deletion types/cborg.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions types/interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export type QuickEncodeToken = (token: Token) => Uint8Array | undefined;
export interface DecodeTokenizer {
done(): boolean;
next(): Token;
pos(): number;
}
export type TagDecoder = (inner: any) => any;
export interface DecodeOptions {
Expand Down
2 changes: 1 addition & 1 deletion types/interface.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion types/lib/decode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ export class Tokeniser implements DecodeTokenizer {
* @param {DecodeOptions} options
*/
constructor(data: Uint8Array, options?: DecodeOptions);
pos: number;
_pos: number;
data: Uint8Array;
options: import("../interface").DecodeOptions;
pos(): number;
done(): boolean;
next(): import("./token.js").Token;
}
Expand All @@ -28,6 +29,12 @@ export function tokensToObject(tokeniser: DecodeTokenizer, options: DecodeOption
* @returns {any}
*/
export function decode(data: Uint8Array, options?: import("../interface").DecodeOptions | undefined): any;
/**
* @param {Uint8Array} data
* @param {DecodeOptions} [options]
* @returns {[any, Uint8Array]}
*/
export function decodeFirst(data: Uint8Array, options?: import("../interface").DecodeOptions | undefined): [any, Uint8Array];
declare const BREAK: unique symbol;
declare const DONE: unique symbol;
export {};
Expand Down
2 changes: 1 addition & 1 deletion types/lib/decode.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion types/lib/json/decode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ export type DecodeTokenizer = import('../../interface').DecodeTokenizer;
* @returns {any}
*/
export function decode(data: Uint8Array, options?: import("../../interface").DecodeOptions | undefined): any;
/**
* @param {Uint8Array} data
* @param {DecodeOptions} [options]
* @returns {[any, Uint8Array]}
*/
export function decodeFirst(data: Uint8Array, options?: import("../../interface").DecodeOptions | undefined): [any, Uint8Array];
/**
* @typedef {import('../../interface').DecodeOptions} DecodeOptions
* @typedef {import('../../interface').DecodeTokenizer} DecodeTokenizer
Expand All @@ -19,12 +25,13 @@ export class Tokenizer implements DecodeTokenizer {
* @param {DecodeOptions} options
*/
constructor(data: Uint8Array, options?: DecodeOptions);
pos: number;
_pos: number;
data: Uint8Array;
options: import("../../interface").DecodeOptions;
/** @type {string[]} */
modeStack: string[];
lastToken: string;
pos(): number;
/**
* @returns {boolean}
*/
Expand Down
2 changes: 1 addition & 1 deletion types/lib/json/decode.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion types/lib/json/json.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { encode } from './encode.js';
import { decode } from './decode.js';
import { decodeFirst } from './decode.js';
import { Tokenizer } from './decode.js';
export { encode, decode, Tokenizer };
export { encode, decode, decodeFirst, Tokenizer };
//# sourceMappingURL=json.d.ts.map
2 changes: 1 addition & 1 deletion types/lib/json/json.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 06133db

Please sign in to comment.