capnpc-ts
Version:
Cap'n Proto schema compiler for TypeScript.
72 lines (71 loc) • 1.99 kB
TypeScript
/**
* @author jdiaz5513
*/
import ts from "typescript";
/** undefined */
export declare const __: undefined;
/** boolean */
export declare const BOOLEAN_TYPE: ts.TypeReferenceNode;
/** capnp */
export declare const CAPNP: ts.Identifier;
/** A Mapping of various types to their list type constructor. */
export declare const ConcreteListType: {
18: string;
1: string;
13: string;
15: string;
10: string;
11: string;
3: string;
4: string;
5: string;
2: string;
17: string;
14: string;
16: string;
12: string;
7: string;
8: string;
9: string;
6: string;
0: string;
};
/** export */
export declare const EXPORT: ts.Token<ts.SyntaxKind.ExportKeyword>;
/** length */
export declare const LENGTH: ts.Identifier;
/** Some data used to help generate code for primitive struct fields. */
export declare const Primitive: {
[t: number]: {
byteLength: number;
getter: string;
mask: string;
setter: string;
};
};
/** number */
export declare const NUMBER_TYPE: ts.TypeReferenceNode;
/** __O */
export declare const OBJECT_SIZE: ts.Identifier;
/** readonly */
export declare const READONLY: ts.Token<ts.SyntaxKind.ReadonlyKeyword>;
/** No... comment? */
export declare const SOURCE_COMMENT = "/* tslint:disable */\n\n/**\n * This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts).\n */\n\n";
/** static */
export declare const STATIC: ts.Token<ts.SyntaxKind.StaticKeyword>;
/** string */
export declare const STRING_TYPE: ts.TypeReferenceNode;
/** __S */
export declare const STRUCT: ts.Identifier;
/** this */
export declare const THIS: ts.ThisExpression;
/**
* Used to look up the ts.capnp file by its ID.
*
* NOTE: The file ID should never change.
*/
export declare const TS_FILE_ID = "e37ded525a68a7c9";
/** value */
export declare const VALUE: ts.Identifier;
/** void */
export declare const VOID_TYPE: ts.TypeReferenceNode;