update exports
This commit is contained in:
parent
dd8a80461c
commit
4afb0e8e27
4 changed files with 4 additions and 47 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
|||
out/
|
||||
node_modules/
|
||||
src/test.ts
|
||||
test.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'
|
||||
|
||||
|
|
45
test.ts
45
test.ts
|
@ -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<string>
|
||||
//
|
||||
// @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)
|
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue