@hegel/core
Advanced tools
Comparing version 0.0.17 to 0.0.18
{ | ||
"name": "@hegel/core", | ||
"author": "Artem Kobzar", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "", | ||
@@ -6,0 +6,0 @@ "main": "./index.js", |
@@ -17,2 +17,6 @@ "use strict"; | ||
class $BottomType extends _type.Type { | ||
static get name() { | ||
return "$BottomType"; | ||
} | ||
static getParent(meta, _, genericArguments = []) { | ||
@@ -19,0 +23,0 @@ return genericArguments.reduce((parent, type) => parent.priority < type.parent.priority ? type.parent : parent, meta.parent || _type.Type.GlobalTypeScope); |
@@ -23,2 +23,6 @@ "use strict"; | ||
class $Class extends _genericType.GenericType { | ||
static get name() { | ||
return "$Class"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -25,0 +29,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -23,2 +23,6 @@ "use strict"; | ||
class CollectionType extends _type.Type { | ||
static get name() { | ||
return "CollectionType"; | ||
} | ||
static term(name, meta = {}, keyType, valueType, ...args) { | ||
@@ -217,2 +221,6 @@ let parent = meta.parent; | ||
class $Collection extends _genericType.GenericType { | ||
static get name() { | ||
return "$Collection"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -219,0 +227,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -25,2 +25,6 @@ "use strict"; | ||
class $Exclude extends _genericType.GenericType { | ||
static get name() { | ||
return "$Exclude"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -27,0 +31,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -21,2 +21,6 @@ "use strict"; | ||
class RestArgument extends _type.Type { | ||
static get name() { | ||
return "RestArgument"; | ||
} | ||
static term(name, meta = {}, type, ...args) { | ||
@@ -107,2 +111,6 @@ name = name == null ? this.getName(type) : name; | ||
class FunctionType extends _type.Type { | ||
static get name() { | ||
return "FunctionType"; | ||
} | ||
static term(name, meta = {}, argumentsTypes, returnType, ...args) { | ||
@@ -109,0 +117,0 @@ let parent = meta.parent; |
@@ -27,2 +27,6 @@ "use strict"; | ||
class GenericType extends _type.Type { | ||
static get name() { | ||
return "GenericType"; | ||
} | ||
static new(name, meta = {}, ...args) { | ||
@@ -29,0 +33,0 @@ const [, localTypeScope, subordinateType] = args; |
@@ -23,2 +23,6 @@ "use strict"; | ||
class $AppliedImmutable extends _type.Type { | ||
static get name() { | ||
return "$AppliedImmutable"; | ||
} | ||
static term(name, meta = {}, readonly, ...args) { | ||
@@ -113,2 +117,6 @@ name = name || this.getName(readonly); | ||
class $Immutable extends _genericType.GenericType { | ||
static get name() { | ||
return "$Immutable"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -115,0 +123,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -27,2 +27,6 @@ "use strict"; | ||
class $InstanceOf extends _genericType.GenericType { | ||
static get name() { | ||
return "$InstanceOf"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -29,0 +33,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -27,2 +27,6 @@ "use strict"; | ||
class $Intersection extends _genericType.GenericType { | ||
static get name() { | ||
return "$Intersection"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -29,0 +33,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -33,2 +33,6 @@ "use strict"; | ||
class $Keys extends _genericType.GenericType { | ||
static get name() { | ||
return "$Keys"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -35,0 +39,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -27,2 +27,6 @@ "use strict"; | ||
class ObjectType extends _type.Type { | ||
static get name() { | ||
return "ObjectType"; | ||
} | ||
static term(name, meta = {}, properties, ...args) { | ||
@@ -29,0 +33,0 @@ name = name == undefined ? // $FlowIssue |
@@ -27,2 +27,6 @@ "use strict"; | ||
class $Omit extends _genericType.GenericType { | ||
static get name() { | ||
return "$Omit"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -29,0 +33,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -29,2 +29,6 @@ "use strict"; | ||
class $Partial extends _genericType.GenericType { | ||
static get name() { | ||
return "$Partial"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -31,0 +35,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -27,2 +27,6 @@ "use strict"; | ||
class $Pick extends _genericType.GenericType { | ||
static get name() { | ||
return "$Pick"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -29,0 +33,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -37,2 +37,6 @@ "use strict"; | ||
class $PropertyType extends _genericType.GenericType { | ||
static get name() { | ||
return "$PropertyType"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -39,0 +43,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -25,2 +25,6 @@ "use strict"; | ||
class $ReturnType extends _genericType.GenericType { | ||
static get name() { | ||
return "$ReturnType"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -27,0 +31,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -23,2 +23,6 @@ "use strict"; | ||
class $Soft extends _genericType.GenericType { | ||
static get name() { | ||
return "$Soft"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -25,0 +29,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -23,2 +23,6 @@ "use strict"; | ||
class $Strict extends _genericType.GenericType { | ||
static get name() { | ||
return "$Strict"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -25,0 +29,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -17,2 +17,6 @@ "use strict"; | ||
class $ThrowsResult extends _type.Type { | ||
static get name() { | ||
return "$ThrowsResult"; | ||
} | ||
constructor(name, meta = {}, errorType) { | ||
@@ -29,2 +33,6 @@ name = name === null ? `$Throws<${String(errorType).name}>` : name; | ||
class $Throws extends _genericType.GenericType { | ||
static get name() { | ||
return "$Throws"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -31,0 +39,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -29,2 +29,6 @@ "use strict"; | ||
class TupleType extends _type.Type { | ||
static get name() { | ||
return "TupleType"; | ||
} | ||
static term(name, meta = {}, items, ...args) { | ||
@@ -31,0 +35,0 @@ let parent = meta.parent; |
@@ -15,2 +15,6 @@ "use strict"; | ||
class $TypeOf extends _genericType.GenericType { | ||
static get name() { | ||
return "$TypeOf"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -17,0 +21,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
@@ -15,2 +15,6 @@ "use strict"; | ||
class TypeVar extends _type.Type { | ||
static get name() { | ||
return "TypeVar"; | ||
} | ||
static isSelf(type) { | ||
@@ -17,0 +21,0 @@ return type.isSubtypeOf === this.Self; |
@@ -21,2 +21,6 @@ "use strict"; | ||
class Type { | ||
static get name() { | ||
return "Type"; | ||
} | ||
static find(name, meta = {}, ...args) { | ||
@@ -23,0 +27,0 @@ const scope = meta.parent || Type.GlobalTypeScope; // $FlowIssue |
@@ -18,2 +18,6 @@ "use strict"; | ||
class UnionType extends _type.Type { | ||
static get name() { | ||
return "UnionType"; | ||
} | ||
static term(name, meta = {}, variants, ...args) { | ||
@@ -20,0 +24,0 @@ variants = UnionType.flatten(variants); |
@@ -29,2 +29,6 @@ "use strict"; | ||
class $Values extends _genericType.GenericType { | ||
static get name() { | ||
return "$Values"; | ||
} | ||
constructor(_, meta = {}) { | ||
@@ -31,0 +35,0 @@ const parent = new _typeScope.TypeScope(meta.parent); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
384596
8221