diff --git a/.gitignore b/.gitignore index 7b0fd02..3968369 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ out/ node_modules/ -src/test.ts +test.ts diff --git a/src/index.ts b/src/index.ts index 7d54d69..047f301 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,7 @@ export * as ser from './ser/index' export * as de from './de/index' +export * from './case' +export * from './registry' export * from './decorator' export * from './options' diff --git a/test.ts b/test.ts deleted file mode 100644 index 796e02b..0000000 --- a/test.ts +++ /dev/null @@ -1,45 +0,0 @@ -//import { register, serde } from './src' -//import { CaseConvention } from './src/case' -//import { deserialize } from './src/de' -//import { fromString, toString } from './src/json' -//import { serialize } from './src/ser' -//import { Nullable } from './src/utils' -// -//@serialize -//@deserialize -//@register() -//@serde({ renameAll: CaseConvention.PascalCase }) -//class InnerStruct { -// private value: string -// -// @serde({ skip: true }) -// private metadata: any -// -// constructor(v: string) { -// this.value = v -// } -//} -// -//@serialize -//@deserialize -//@register() -//@serde({ renameAll: CaseConvention.SnakeCase }) -//class TestStruct { -// aNumber: number = 69 -// aString: Nullable -// -// @serde({ skip: { serializing: { if: (v: boolean) => v } } }) -// aBoolean: boolean = false -// -// innerStruct: InnerStruct -// -// constructor(str: string) { -// this.innerStruct = new InnerStruct(str) -// } -//} -// -//const test = new TestStruct('hi :3') -//const ser = toString(test) -//console.log(ser) -//const de = fromString(ser, TestStruct) -//console.log(de) diff --git a/tsconfig.json b/tsconfig.json index 80eabcd..c073d43 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -59,7 +59,7 @@ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ // "noEmit": true, /* Disable emitting files from a compilation. */ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ - "outDir": "./out", /* Specify an output folder for all emitted files. */ + // "outDir": "./", /* Specify an output folder for all emitted files. */ // "removeComments": true, /* Disable emitting comments. */ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */