public static forStruct()

in src/type-generator.ts [94:98]


  public static forStruct(structName: string, schema: JSONSchema4, options: TypeGeneratorOptions = {}) {
    const gen = new TypeGenerator({ definitions: schema.definitions, ...options });
    gen.emitType(structName, schema);
    return gen;
  }