Skip to content

Commit

Permalink
Add NoInfer utility type (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
rimuy authored Jun 24, 2024
1 parent 57cf959 commit ac7d1dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,8 @@ type LuaTuple<T extends Array<any>> = T & {
interface TypedPropertyDescriptor<T> {
value: (self: InferThis<T>, ...parameters: Parameters<T>) => ReturnType<T>;
}

/**
* Marker for non-inference type position
*/
type NoInfer<T> = intrinsic;

0 comments on commit ac7d1dd

Please sign in to comment.