@hypermode/models-as
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -13,6 +13,9 @@ import { JSON } from "json-as"; | ||
export interface ModelFactory { | ||
getModel<T extends Model<object, object>>(modelName: string): T; | ||
getModel<T extends Model>(modelName: string): T; | ||
} | ||
export abstract class Model<TInput extends object, TOutput extends object> { | ||
export abstract class Model< | ||
TInput extends object = object, | ||
TOutput extends object = object, | ||
> { | ||
protected constructor( | ||
@@ -19,0 +22,0 @@ public readonly info: ModelInfo, |
{ | ||
"name": "@hypermode/models-as", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Hypermode Model Interface Library for AssemblyScript", | ||
@@ -5,0 +5,0 @@ "author": "Hypermode, Inc.", |
11918
362