You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: example/prototypes/from-schema.ts
+14
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ const IsSTuple = (value: unknown): value is STuple => Type.ValueGuard.IsObject(v
41
41
constIsSArray=(value: unknown): value is SArray=>Type.ValueGuard.IsObject(value)&&IsExact(value.type,'array')&&!Type.ValueGuard.IsArray(value.items)&&Type.ValueGuard.IsObject(value.items)
42
42
constIsSConst=(value: unknown): value is SConst=>Type.ValueGuard.IsObject(value)&&Type.ValueGuard.IsObject(value['const'])
43
43
constIsSString=(value: unknown): value is SString=>Type.ValueGuard.IsObject(value)&&IsExact(value.type,'string')
44
+
constIsSRef=(value: unknown): value is SRef=>Type.ValueGuard.IsObject(value)&&Type.ValueGuard.IsString(value.$ref)
44
45
constIsSNumber=(value: unknown): value is SNumber=>Type.ValueGuard.IsObject(value)&&IsExact(value.type,'number')
45
46
constIsSInteger=(value: unknown): value is SInteger=>Type.ValueGuard.IsObject(value)&&IsExact(value.type,'integer')
46
47
constIsSBoolean=(value: unknown): value is SBoolean=>Type.ValueGuard.IsObject(value)&&IsExact(value.type,'boolean')
@@ -58,6 +59,7 @@ type SObject = Readonly<{ type: 'object'; properties: SProperties; required?: re
0 commit comments