Skip to content

Commit 8fc83c6

Browse files
committed
api extractor for null assertion
1 parent c2eef3e commit 8fc83c6

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

etc/aiscript.api.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ function assertBoolean(val: Value | null | undefined): asserts val is VBool;
123123
// @public (undocumented)
124124
function assertFunction(val: Value | null | undefined): asserts val is VFn;
125125

126+
// @public (undocumented)
127+
function assertNull(val: Value | null | undefined): asserts val is VNull;
128+
126129
// @public (undocumented)
127130
function assertNumber(val: Value | null | undefined): asserts val is VNum;
128131

@@ -466,6 +469,9 @@ function isExpression(x: Node_2): x is Expression;
466469
// @public (undocumented)
467470
function isFunction(val: Value): val is VFn;
468471

472+
// @public (undocumented)
473+
function isNull(val: Value): val is VNull;
474+
469475
// @public (undocumented)
470476
function isNumber(val: Value): val is VNum;
471477

@@ -757,18 +763,20 @@ type UnionTypeSource = NodeBase & {
757763
declare namespace utils {
758764
export {
759765
expectAny,
760-
assertBoolean,
761-
assertFunction,
762-
assertString,
763-
assertNumber,
764-
assertObject,
765-
assertArray,
766766
isBoolean,
767767
isFunction,
768768
isString,
769769
isNumber,
770770
isObject,
771771
isArray,
772+
isNull,
773+
assertBoolean,
774+
assertFunction,
775+
assertString,
776+
assertNumber,
777+
assertObject,
778+
assertArray,
779+
assertNull,
772780
eq,
773781
valToString,
774782
valToJs,

0 commit comments

Comments
 (0)