UNPKG

@rbxts/insitux

Version:

Extensible s-expression scripting language enabling players to safely mod Roblox games themselves.

63 lines (62 loc) 3.42 kB
/// <reference types="@rbxts/types" /> export declare const isObj: (x: unknown) => x is { [index: string]: unknown; }; export declare const isStr: (x: unknown) => x is string; export declare const toNum: (x: unknown) => number; export declare const slice: <T extends defined>(arr: T[], start?: number, _end?: number) => T[]; export declare const trim: (lol: string) => string; export declare const splice: <T extends defined>(arr: T[], start: number, numDel?: number) => T[]; export declare const objKeys: (x: { [index: string]: unknown; }) => string[]; export declare const isNum: (x: unknown) => x is number; export declare const flat: <T extends defined>(arr: T[][]) => T[]; export declare const has: (x: string | defined[], y: defined) => boolean; export declare const randNum: (a: number, b: number) => number; export declare const randInt: (a: number, b: number) => number; export declare const concat: <T extends defined>(a: T[], b: T[]) => T[]; export declare const sub: (x: string, s: string) => boolean; export declare const substr: (str: string, start: number, length?: number) => string; export declare const strIdx: (str: string, idx: number) => string; export declare const starts: (str: string, x: string) => boolean; export declare const ends: (str: string, x: string) => boolean; export declare const replace: (str: string, what: string, to: string) => string; export declare const rreplace: (str: string, what: string, to: string) => string; export declare const sortBy: <T extends defined>(arr: T[], by: (a: T, b: T) => number) => T[]; export declare const reverse: <T>(arr: T[]) => T[]; export declare const push: <T extends defined>(arr: T[], add: T[]) => void; export declare const subIdx: (a: string, b: string) => number; export declare const range: (len: number) => number[]; export declare const len: (arr: unknown[]) => number; export declare const slen: (str: string) => number; export declare const padEnd: (s: string, size: number) => string; export declare const tan: typeof math.tan; export declare const sqrt: typeof math.sqrt; export declare const sin: typeof math.sin; export declare const round: typeof math.round; export declare const min: typeof math.min; export declare const max: typeof math.max; export declare const floor: typeof math.floor; export declare const cos: typeof math.cos; export declare const ceil: typeof math.ceil; export declare const abs: typeof math.abs; export declare const sign: typeof math.sign; export declare const sinh: typeof math.sinh; export declare const cosh: typeof math.cosh; export declare const tanh: typeof math.tanh; export declare const asin: typeof math.asin; export declare const acos: typeof math.acos; export declare const atan: typeof math.atan; export declare const pi: number; export declare const isArray: (x: unknown) => x is unknown[]; export declare const logn: (x: number) => number; export declare const log2: (x: number) => number; export declare const log10: typeof math.log10; export declare const upperCase: typeof string.upper; export declare const lowerCase: typeof string.lower; export declare const trimStart: (str: string) => string; export declare const trimEnd: (str: string) => string; export declare const charCode: (str: string) => number; export declare const codeChar: (num: number) => string; export declare const getTimeMs: () => number;