Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions as/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ import { asReadonly, asUnreadonly } from "./readonly.ts";
* Annotation collection for object predicate properties.
*/
export const as = {
/** @inheritdoc */
Optional: asOptional,
/** @inheritdoc */
Readonly: asReadonly,
/** @inheritdoc */
Unoptional: asUnoptional,
/** @inheritdoc */
Unreadonly: asUnreadonly,
};
41 changes: 41 additions & 0 deletions is/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,47 @@ import { isUnknown } from "./unknown.ts";

/**
* Type predicate function collection.
*
* @namespace
* @borrows module:unknownutil/is/any.isAny as Any
* @borrows {@link module:unknownutil/is/any.isArray} as Array
* @borrows isArrayOf as ArrayOf
* @borrows isAsyncFunction as AsyncFunction
* @borrows isBigint as Bigint
* @borrows isBoolean as Boolean
* @borrows isFunction as Function
* @borrows isInstanceOf as InstanceOf
* @borrows isIntersectionOf as IntersectionOf
* @borrows isLiteralOf as LiteralOf
* @borrows isLiteralOneOf as LiteralOneOf
* @borrows isMap as Map
* @borrows isMapOf as MapOf
* @borrows isNull as Null
* @borrows isNullish as Nullish
* @borrows isNumber as Number
* @borrows isObjectOf as ObjectOf
* @borrows isOmitOf as OmitOf
* @borrows isParametersOf as ParametersOf
* @borrows isPartialOf as PartialOf
* @borrows isPickOf as PickOf
* @borrows isPrimitive as Primitive
* @borrows isReadonlyOf as ReadonlyOf
* @borrows isRecord as Record
* @borrows isRecordObject as RecordObject
* @borrows isRecordObjectOf as RecordObjectOf
* @borrows isRecordOf as RecordOf
* @borrows isRequiredOf as RequiredOf
* @borrows isSet as Set
* @borrows isSetOf as SetOf
* @borrows isStrictOf as StrictOf
* @borrows isString as String
* @borrows isSymbol as Symbol
* @borrows isSyncFunction as SyncFunction
* @borrows isTupleOf as TupleOf
* @borrows isUndefined as Undefined
* @borrows isUniformTupleOf as UniformTupleOf
* @borrows isUnionOf as UnionOf
* @borrows isUnknown as Unknown
*/
export const is = {
Any: isAny,
Expand Down