Skip to content

Commit

Permalink
fix: use FreshableIntrinsicType instead of UnknownLiteralType
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Nov 22, 2024
1 parent 4b98071 commit 9af7c38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types/typeGuards/literal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { type FreshableIntrinsicType } from "./compound";
* i.e. Either a "true" or "false" literal.
* @category Type Types
*/
export interface BooleanLiteralType extends UnknownLiteralType {
export interface BooleanLiteralType extends FreshableIntrinsicType {
intrinsicName: "false" | "true";
}

Expand Down Expand Up @@ -190,6 +190,7 @@ export interface UnknownLiteralType extends FreshableIntrinsicType {
*/
export function isUnknownLiteralType(
type: ts.Type,
// eslint-disable-next-line deprecation/deprecation
): type is UnknownLiteralType {
return isTypeFlagSet(type, ts.TypeFlags.Literal);
}

0 comments on commit 9af7c38

Please sign in to comment.