-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Importing with .ts extensions (#42)
- Loading branch information
Showing
42 changed files
with
580 additions
and
596 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,46 @@ | ||
import * as bin from './main-api'; | ||
export * from './main-api'; | ||
import * as bin from './main-api.ts'; | ||
export * from './main-api.ts'; | ||
export { bin }; | ||
export default bin; | ||
|
||
export * from './structure'; | ||
export { getSystemEndianness } from './util'; | ||
export type { ParseUnwrapped } from './utilityTypes'; | ||
export { getSystemEndianness } from './util.ts'; | ||
export { MaxValue, SubTypeKey } from './structure/types.ts'; | ||
export { | ||
BoolSchema, | ||
Float16Schema, | ||
Float32Schema, | ||
Int16Schema, | ||
Int32Schema, | ||
Int8Schema, | ||
StringSchema, | ||
Uint16Schema, | ||
Uint32Schema, | ||
Uint8Schema, | ||
/** @deprecated Use Uint8Schema instead. */ | ||
Uint8Schema as ByteSchema, | ||
} from './structure/baseTypes.ts'; | ||
export { ArraySchema } from './structure/array.ts'; | ||
export { CharsSchema } from './structure/chars.ts'; | ||
export { DynamicArraySchema } from './structure/dynamicArray.ts'; | ||
export { KeyedSchema } from './structure/keyed.ts'; | ||
export { ObjectSchema, GenericObjectSchema } from './structure/object.ts'; | ||
export { OptionalSchema } from './structure/optional.ts'; | ||
export { TupleSchema } from './structure/tuple.ts'; | ||
export { TypedArraySchema } from './structure/typedArray.ts'; | ||
|
||
export type { AnyObjectSchema } from './structure/object.ts'; | ||
export type { | ||
Unwrap, | ||
UnwrapRecord, | ||
UnwrapArray, | ||
IKeyedSchema, | ||
Ref, | ||
IRefResolver, | ||
Schema, | ||
ISchema, | ||
AnyKeyedSchema, | ||
AnySchema, | ||
AnySchemaWithProperties, | ||
ISchemaWithProperties, | ||
} from './structure/types.ts'; | ||
export type { ParseUnwrapped } from './utilityTypes.ts'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,49 @@ | ||
export { MaxValue } from './structure'; | ||
export * from './describe'; | ||
export * from './io'; | ||
export * from './error'; | ||
export { arrayOf } from './structure/array.ts'; | ||
export { | ||
bool, | ||
byte, | ||
i8, | ||
u8, | ||
i16, | ||
u16, | ||
i32, | ||
u32, | ||
f16, | ||
f32, | ||
string, | ||
} from './structure/baseTypes.ts'; | ||
export { chars } from './structure/chars.ts'; | ||
export { concat } from './structure/concat.ts'; | ||
export { dynamicArrayOf } from './structure/dynamicArray.ts'; | ||
export { keyed } from './structure/keyed.ts'; | ||
export { object, generic, genericEnum } from './structure/object.ts'; | ||
export { optional } from './structure/optional.ts'; | ||
export { tupleOf } from './structure/tuple.ts'; | ||
export { | ||
f32Array, | ||
f64Array, | ||
i16Array, | ||
i32Array, | ||
i8Array, | ||
u16Array, | ||
u32Array, | ||
u8Array, | ||
u8ClampedArray, | ||
} from './structure/typedArray.ts'; | ||
export { MaxValue } from './structure/types.ts'; | ||
|
||
export type { Parsed } from './utilityTypes'; | ||
export { BufferReader } from './io/bufferReader.ts'; | ||
export { BufferWriter } from './io/bufferWriter.ts'; | ||
export { Measurer } from './io/measurer.ts'; | ||
export { | ||
UnresolvedReferenceError, | ||
ValidationError, | ||
} from './error.ts'; | ||
|
||
export type { | ||
Endianness, | ||
IMeasurer, | ||
ISerialInput, | ||
ISerialOutput, | ||
} from './io/types.ts'; | ||
export type { Parsed } from './utilityTypes.ts'; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.