UNPKG

tolk-codegen

Version:

## Example generator ### Create builder file in root folder ``builder.ts``

16 lines (15 loc) 495 B
import { ClassConstructor } from './type'; import { DataType } from './decorators'; import { DictionaryKey, DictionaryValue } from '@ton/core'; export interface Field { name: string; buildType: DataType; size?: number; dict?: { key: DictionaryKey<any>; value: DictionaryValue<any>; }; type: any; mayBe: boolean; } export declare function travel<T>(type: ClassConstructor<T>, callback: (prototype: object, field: Field) => void, deep?: boolean): void;