gristlabs / ts-interface-builder

Compile TypeScript interfaces into a description that allows runtime validation
Apache License 2.0
132 stars 28 forks source link

Add namespaces #27

Open Crusader4Christ opened 4 years ago

Crusader4Christ commented 4 years ago

Input

export namespace iAppConfig {
  export interface ServiceConfig {
    key: string;
    token: string;
  }
}

Output is for empty file:

/**
 * This module was automatically generated by `ts-interface-builder`
 */
import * as t from "ts-interface-checker";
// tslint:disable:object-literal-key-quotes
const exportedTypeSuite: t.ITypeSuite = {
};
export default exportedTypeSuite;

Quick fix - just to ignore namespaces