Skip to content

Commit

Permalink
remove value field
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkwaiblinger committed Oct 22, 2024
1 parent 72d7e63 commit ad63aca
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/types/typeGuards/literal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { type FreshableIntrinsicType } from "./compound";
*/
export interface BooleanLiteralType extends UnknownLiteralType {
intrinsicName: "false" | "true";
value: boolean;
}

/**
Expand Down Expand Up @@ -55,7 +54,6 @@ export function isBigIntLiteralType(
*/
export interface FalseLiteralType extends BooleanLiteralType {
intrinsicName: "false";
value: false;
}

/**
Expand Down Expand Up @@ -150,7 +148,6 @@ export function isTemplateLiteralType(
*/
export interface TrueLiteralType extends BooleanLiteralType {
intrinsicName: "true";
value: true;
}

/**
Expand All @@ -173,9 +170,7 @@ export function isTrueLiteralType(type: ts.Type): type is TrueLiteralType {
* `LiteralType` from typescript except that it allows for it to work on arbitrary types.
* @category Type Types
*/
export interface UnknownLiteralType extends FreshableIntrinsicType {
value: unknown;
}
export interface UnknownLiteralType extends FreshableIntrinsicType {}

/**
* Test if a type is a {@link UnknownLiteralType}.
Expand Down

0 comments on commit ad63aca

Please sign in to comment.