Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Math Prototype #418

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
17 changes: 17 additions & 0 deletions types/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,20 @@ type LuaTuple<T extends Array<any>> = T & {
interface TypedPropertyDescriptor<T> {
value: (self: InferThis<T>, ...parameters: Parameters<T>) => ReturnType<T>;
}

type Add<T> = { add: T };
type Sub<T> = { sub: T };
type Mul<T> = { mul: T };
type Div<T> = { div: T };
type IDiv<T> = { idiv: T };
type Concat<T> = { concat: T };
type Mod<T> = { mod: T };
type Pow<T> = { pow: T };
type Eq<T> = { eq: T };
type Lt<T> = { lt: T };
type Le<T> = { le: T };
type Gt<T> = { gt: T };
type Ge<T> = { ge: T };

type Unm<T> = { unm: T };
type Len<T> = { len: T };
Loading