hashbrown

fromJsonAst

API

export declare function fromJsonAst<
  T extends  HashbrownType ,
>(
  schema: T,
  state: {
    nodes:  JsonAstNode [];
    rootId: number | null;
    error:  ParserError  | null;
  },
  cache?:  FromJsonAstCache ,
):  FromJsonAstOutput <T["~schema"]["result"]>;
fromJsonAst
FromJsonAstOutput<T['~schema']['result']>
@paramschema:
T
@paramstate:
{
    nodes: JsonAstNode[];
    rootId: number | null;
    error: ParserError | null;
}
@optionalcache:
FromJsonAstCache
@typeT
HashbrownType
@returns
FromJsonAstOutput<T['~schema']['result']>