Skip to content

Commit

Permalink
Update dependecies
Browse files Browse the repository at this point in the history
  • Loading branch information
Neos3452 committed Mar 13, 2019
1 parent e3014fe commit 1fda8a7
Show file tree
Hide file tree
Showing 13 changed files with 1,596 additions and 4,819 deletions.
2 changes: 1 addition & 1 deletion js/typedjson.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export declare class TypedJSON<T> {
stringifyAsArray(object: T[][][][][], dimensions: 5): string;
stringifyAsSet(object: Set<T>): string;
stringifyAsMap<K>(object: Map<K, T>, keyConstructor: Constructor<K>): string;
private _mapKnownTypes(constructors);
private _mapKnownTypes;
}
export { jsonObject } from "./typedjson/json-object";
export { jsonMember } from "./typedjson/json-member";
Expand Down
73 changes: 47 additions & 26 deletions js/typedjson.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/typedjson.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/typedjson.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/typedjson.min.js.map

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions js/typedjson/deserializer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ export declare class Deserializer<T> {
setNameResolver(nameResolverCallback: (ctor: Function) => string): void;
setTypeResolver(typeResolverCallback: (sourceObject: Object, knownTypes: Map<string, Function>) => Function): void;
setErrorHandler(errorHandlerCallback: (error: Error) => void): void;
convertAsObject(sourceObject: IndexedObject, sourceObjectTypeInfo: IScopeTypeInfo, objectName?: string): IndexedObject | undefined;
convertAsObject(sourceObject: IndexedObject, sourceObjectTypeInfo: IScopeTypeInfo, objectName?: string): {} | undefined;
convertSingleValue(sourceObject: any, typeInfo: IScopeTypeInfo, memberName?: string): any;
convertAsArray(sourceObject: any, typeInfo: IScopeTypeInfo, memberName?: string): any[];
convertAsSet(sourceObject: any, typeInfo: IScopeTypeInfo, memberName?: string): Set<any>;
convertAsMap(sourceObject: any, typeInfo: IScopeTypeInfo, memberName?: string): Map<any, any>;
private _throwTypeMismatchError(targetType, expectedSourceType, actualSourceType, memberName?);
private _makeTypeErrorMessage(expectedType, actualType, memberName?);
private _instantiateType(ctor);
private _mergeKnownTypes(...knownTypeMaps);
private _createKnownTypesMap(knowTypes);
private _isDirectlyDeserializableNativeType(ctor);
private _throwTypeMismatchError;
private _makeTypeErrorMessage;
private _instantiateType;
private _mergeKnownTypes;
private _createKnownTypesMap;
private _isDirectlyDeserializableNativeType;
convertNativeObject(sourceObject: any): any;
private _stringToArrayBuffer(str);
private _stringToDataView(str);
private _stringToArrayBuffer;
private _stringToDataView;
}
2 changes: 1 addition & 1 deletion js/typedjson/helpers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export declare function getDefaultValue<T>(type: {
/**
* Determines whether the specified type is a type that can be passed on "as-is" into `JSON.stringify`.
* Values of these types don't need special conversion.
* @param ctor The constructor of the type (wrapper constructor for primitive types, e.g. `Number` for `number`).
* @param type The constructor of the type (wrapper constructor for primitive types, e.g. `Number` for `number`).
*/
export declare function isDirectlySerializableNativeType(type: Function): boolean;
export declare function isTypeTypedArray(type: Function): boolean;
Expand Down
2 changes: 1 addition & 1 deletion js/typedjson/metadata.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export declare class JsonObjectMetadata {
* @param constructor The constructor class.
*/
static getKnownTypeNameFromType(constructor: Function): string;
private static doesHandleWithoutAnnotation(ctor);
private static doesHandleWithoutAnnotation;
constructor(classType: Function);
dataMembers: Map<string, JsonMemberMetadata>;
knownTypes: Set<Function>;
Expand Down
Loading

0 comments on commit 1fda8a7

Please sign in to comment.