diff --git a/src/comments.ts b/src/comments.ts index 3f2c6724..3a58b39d 100644 --- a/src/comments.ts +++ b/src/comments.ts @@ -71,7 +71,7 @@ export type ForEachCommentCallback = ( * ```ts * declare const node: ts.Node; * - * tsutils.forEachComment(node, (fullText, comment) => { + * forEachComment(node, (fullText, comment) => { * console.log(`Found comment at position ${comment.pos}: '${fullText}'.`); * }); * ``` diff --git a/src/types/typeGuards/intrinsic.ts b/src/types/typeGuards/intrinsic.ts index e0b294a3..27c89f81 100644 --- a/src/types/typeGuards/intrinsic.ts +++ b/src/types/typeGuards/intrinsic.ts @@ -19,7 +19,7 @@ export interface IntrinsicAnyType extends IntrinsicType { * ```ts * declare const type: ts.Type; * - * if (isAnyType(type)) { + * if (isIntrinsicAnyType(type)) { * // ... * } * ``` @@ -45,7 +45,7 @@ export interface IntrinsicBooleanType extends IntrinsicType { * ```ts * declare const type: ts.Type; * - * if (isBooleanType(type)) { + * if (isIntrinsicBooleanType(type)) { * // ... * } * ``` @@ -73,7 +73,7 @@ export interface IntrinsicBigIntType extends IntrinsicType { * ```ts * declare const type: ts.Type; * - * if (isBigIntType(type)) { + * if (isIntrinsicBigIntType(type)) { * // ... * } * ``` @@ -101,7 +101,7 @@ export interface IntrinsicESSymbolType extends IntrinsicType { * ```ts * declare const type: ts.Type; * - * if (isESSymbolType(type)) { + * if (isIntrinsicESSymbolType(type)) { * // ... * } * ``` @@ -173,7 +173,7 @@ export interface IntrinsicNeverType extends IntrinsicType { * ```ts * declare const type: ts.Type; * - * if (isNeverType(type)) { + * if (isIntrinsicNeverType(type)) { * // ... * } * ``` @@ -203,7 +203,7 @@ export interface IntrinsicNonPrimitiveType extends IntrinsicType { * ```ts * declare const type: ts.Type; * - * if (isNeverType(type)) { + * if (isIntrinsicNonPrimitiveType(type)) { * // ... * } * ``` @@ -231,7 +231,7 @@ export interface IntrinsicNullType extends IntrinsicType { * ```ts * declare const type: ts.Type; * - * if (isNullType(type)) { + * if (isIntrinsicNullType(type)) { * // ... * } * ``` @@ -257,7 +257,7 @@ export interface IntrinsicNumberType extends IntrinsicType { * ```ts * declare const type: ts.Type; * - * if (isNumberType(type)) { + * if (isIntrinsicNumberType(type)) { * // ... * } * ``` @@ -285,7 +285,7 @@ export interface IntrinsicStringType extends IntrinsicType { * ```ts * declare const type: ts.Type; * - * if (isStringType(type)) { + * if (isIntrinsicStringType(type)) { * // ... * } * ``` @@ -313,7 +313,7 @@ export interface IntrinsicUndefinedType extends IntrinsicType { * ```ts * declare const type: ts.Type; * - * if (isUndefinedType(type)) { + * if (isIntrinsicUndefinedType(type)) { * // ... * } * ``` @@ -341,7 +341,7 @@ export interface IntrinsicUnknownType extends IntrinsicType { * ```ts * declare const type: ts.Type; * - * if (isUnknownType(type)) { + * if (isIntrinsicUnknownType(type)) { * // ... * } * ``` @@ -369,7 +369,7 @@ export interface IntrinsicVoidType extends IntrinsicType { * ```ts * declare const type: ts.Type; * - * if (isVoidType(type)) { + * if (isIntrinsicVoidType(type)) { * // ... * } * ``` diff --git a/src/types/utilities.ts b/src/types/utilities.ts index fac2c029..de86cc76 100644 --- a/src/types/utilities.ts +++ b/src/types/utilities.ts @@ -32,7 +32,7 @@ import { * ```ts * declare const type: ts.Type; * - * if (isConditionalType(type)) { + * if (isFalsyType(type)) { * // ... * } * ```