File size: 2,884 Bytes
b5ea024
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/**
 * https://tc39.es/ecma262/#sec-tostring
 */
export declare function ToString(o: unknown): string;
/**
 * https://tc39.es/ecma262/#sec-tonumber
 * @param val
 */
export declare function ToNumber(val: any): number;
/**
 * https://tc39.es/ecma262/#sec-timeclip
 * @param time
 */
export declare function TimeClip(time: number): number;
/**
 * https://tc39.es/ecma262/#sec-toobject
 * @param arg
 */
export declare function ToObject<T>(arg: T): T extends null ? never : T extends undefined ? never : T;
/**
 * https://www.ecma-international.org/ecma-262/11.0/index.html#sec-samevalue
 * @param x
 * @param y
 */
export declare function SameValue(x: any, y: any): boolean;
/**
 * https://www.ecma-international.org/ecma-262/11.0/index.html#sec-arraycreate
 * @param len
 */
export declare function ArrayCreate(len: number): any[];
/**
 * https://www.ecma-international.org/ecma-262/11.0/index.html#sec-hasownproperty
 * @param o
 * @param prop
 */
export declare function HasOwnProperty(o: object, prop: string): boolean;
/**
 * https://www.ecma-international.org/ecma-262/11.0/index.html#sec-type
 * @param x
 */
export declare function Type(x: any): "Null" | "Undefined" | "Object" | "Number" | "Boolean" | "String" | "Symbol" | "BigInt" | undefined;
/**
 * https://tc39.es/ecma262/#eqn-Day
 * @param t
 */
export declare function Day(t: number): number;
/**
 * https://tc39.es/ecma262/#sec-week-day
 * @param t
 */
export declare function WeekDay(t: number): number;
/**
 * https://tc39.es/ecma262/#sec-year-number
 * @param y
 */
export declare function DayFromYear(y: number): number;
/**
 * https://tc39.es/ecma262/#sec-year-number
 * @param y
 */
export declare function TimeFromYear(y: number): number;
/**
 * https://tc39.es/ecma262/#sec-year-number
 * @param t
 */
export declare function YearFromTime(t: number): number;
export declare function DaysInYear(y: number): 365 | 366;
export declare function DayWithinYear(t: number): number;
export declare function InLeapYear(t: number): 0 | 1;
/**
 * https://tc39.es/ecma262/#sec-month-number
 * @param t
 */
export declare function MonthFromTime(t: number): 0 | 1 | 2 | 3 | 4 | 7 | 5 | 6 | 8 | 9 | 10 | 11;
export declare function DateFromTime(t: number): number;
export declare function HourFromTime(t: number): number;
export declare function MinFromTime(t: number): number;
export declare function SecFromTime(t: number): number;
/**
 * The abstract operation OrdinaryHasInstance implements
 * the default algorithm for determining if an object O
 * inherits from the instance object inheritance path
 * provided by constructor C.
 * @param C class
 * @param O object
 * @param internalSlots internalSlots
 */
export declare function OrdinaryHasInstance(C: Object, O: any, internalSlots?: {
    boundTargetFunction: any;
}): boolean;
export declare function msFromTime(t: number): number;
//# sourceMappingURL=262.d.ts.map