inferred-types 0.49.7 → 0.49.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/inferred-types/index.cjs +7 -0
- package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/type-guards/index.d.ts +1 -0
- package/dist/runtime/type-guards/index.d.ts.map +1 -1
- package/dist/runtime/type-guards/index.js +1 -0
- package/package.json +1 -1
|
@@ -306,6 +306,7 @@ __export(inferred_types_exports, {
|
|
|
306
306
|
isSpecificConstant: () => isSpecificConstant,
|
|
307
307
|
isString: () => isString,
|
|
308
308
|
isSymbol: () => isSymbol,
|
|
309
|
+
isThenable: () => isThenable,
|
|
309
310
|
isTrimable: () => isTrimable,
|
|
310
311
|
isTrue: () => isTrue,
|
|
311
312
|
isTruthy: () => isTruthy,
|
|
@@ -2473,6 +2474,11 @@ function isTypeToken(val) {
|
|
|
2473
2474
|
}
|
|
2474
2475
|
}
|
|
2475
2476
|
|
|
2477
|
+
// src/runtime/type-guards/isThenable.ts
|
|
2478
|
+
var isThenable = (val) => {
|
|
2479
|
+
return isObject(val) && "then" in val && "catch" in val && typeof val.then === "function";
|
|
2480
|
+
};
|
|
2481
|
+
|
|
2476
2482
|
// src/runtime/type-guards/isErrorCondition.ts
|
|
2477
2483
|
function isErrorCondition(value, kind = null) {
|
|
2478
2484
|
return isObject(value) && "__kind" in value && value.__kind === "ErrorCondition" && "kind" in value ? kind !== null ? value["kind"] === kind : true : false;
|
|
@@ -4243,6 +4249,7 @@ var asVueRef = (value) => ({
|
|
|
4243
4249
|
isSpecificConstant,
|
|
4244
4250
|
isString,
|
|
4245
4251
|
isSymbol,
|
|
4252
|
+
isThenable,
|
|
4246
4253
|
isTrimable,
|
|
4247
4254
|
isTrue,
|
|
4248
4255
|
isTruthy,
|