@newdash/newdash
Version:
javascript/typescript utility library
456 lines (455 loc) • 14.7 kB
TypeScript
/** Used to associate wrap methods with their bit flags. */
export const wrapFlags: (string | number)[][];
export const argsTag: "[object Arguments]";
export const arrayTag: "[object Array]";
export const asyncTag: "[object AsyncFunction]";
export const boolTag: "[object Boolean]";
export const dateTag: "[object Date]";
export const domExcTag: "[object DOMException]";
export const errorTag: "[object Error]";
export const funcTag: "[object Function]";
export const genTag: "[object GeneratorFunction]";
export const mapTag: "[object Map]";
export const numberTag: "[object Number]";
export const nullTag: "[object Null]";
export const objectTag: "[object Object]";
export const promiseTag: "[object Promise]";
export const proxyTag: "[object Proxy]";
export const regexpTag: "[object RegExp]";
export const setTag: "[object Set]";
export const stringTag: "[object String]";
export const symbolTag: "[object Symbol]";
export const undefinedTag: "[object Undefined]";
export const weakMapTag: "[object WeakMap]";
export const weakSetTag: "[object WeakSet]";
export const arrayBufferTag: "[object ArrayBuffer]";
export const dataViewTag: "[object DataView]";
export const float32Tag: "[object Float32Array]";
export const float64Tag: "[object Float64Array]";
export const int8Tag: "[object Int8Array]";
export const int16Tag: "[object Int16Array]";
export const int32Tag: "[object Int32Array]";
export const uint8Tag: "[object Uint8Array]";
export const uint8ClampedTag: "[object Uint8ClampedArray]";
export const uint16Tag: "[object Uint16Array]";
export const uint32Tag: "[object Uint32Array]";
export const reEmptyStringLeading: RegExp;
export const reEmptyStringMiddle: RegExp;
export const reEmptyStringTrailing: RegExp;
export const reEscapedHtml: RegExp;
export const reUnescapedHtml: RegExp;
export const reHasEscapedHtml: RegExp;
export const reHasUnescapedHtml: RegExp;
export const reEscape: RegExp;
export const reEvaluate: RegExp;
export const reInterpolate: RegExp;
export const reIsDeepProp: RegExp;
export const reIsPlainProp: RegExp;
export const rePropName: RegExp;
export const reRegExpChar: RegExp;
export const reHasRegExpChar: RegExp;
export const reTrim: RegExp;
export const reTrimStart: RegExp;
export const reTrimEnd: RegExp;
export const reWrapComment: RegExp;
export const reWrapDetails: RegExp;
export const reSplitDetails: RegExp;
/** Used to match words composed of alphanumeric characters. */
export const reAsciiWord: RegExp;
/** Used to match backslashes in property paths. */
export const reEscapeChar: RegExp;
/**
* Used to match
* [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
*/
export const reEsTemplate: RegExp;
/** Used to match `RegExp` flags from their coerced string values. */
export const reFlags: RegExp;
/** Used to detect bad signed hexadecimal string values. */
export const reIsBadHex: RegExp;
/** Used to detect binary string values. */
export const reIsBinary: RegExp;
/** Used to detect host constructors (Safari). */
export const reIsHostCtor: RegExp;
/** Used to detect octal string values. */
export const reIsOctal: RegExp;
/** Used to detect unsigned integer values. */
export const reIsUint: RegExp;
/** Used to match Latin Unicode letters (excluding mathematical operators). */
export const reLatin: RegExp;
/** Used to ensure capturing order of template delimiters. */
export const reNoMatch: RegExp;
/** Used to match unescaped characters in compiled string literals. */
export const reUnescapedString: RegExp;
export const rsAstralRange: "\\ud800-\\udfff";
export const rsComboMarksRange: "\\u0300-\\u036f";
export const reComboHalfMarksRange: "\\ufe20-\\ufe2f";
export const rsComboSymbolsRange: "\\u20d0-\\u20ff";
export const rsComboRange: string;
export const rsDingbatRange: "\\u2700-\\u27bf";
export const rsLowerRange: "a-z\\xdf-\\xf6\\xf8-\\xff";
export const rsMathOpRange: "\\xac\\xb1\\xd7\\xf7";
export const rsNonCharRange: "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf";
export const rsPunctuationRange: "\\u2000-\\u206f";
export const rsSpaceRange: " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000";
export const rsUpperRange: "A-Z\\xc0-\\xd6\\xd8-\\xde";
export const rsVarRange: "\\ufe0e\\ufe0f";
export const rsBreakRange: string;
export const rsApos: "['’]";
export const rsAstral: string;
export const rsBreak: string;
export const rsCombo: string;
export const rsDigits: "\\d+";
export const rsDingbat: string;
export const rsLower: string;
export const rsMisc: string;
export const rsFitz: "\\ud83c[\\udffb-\\udfff]";
export const rsModifier: string;
export const rsNonAstral: string;
export const rsRegional: "(?:\\ud83c[\\udde6-\\uddff]){2}";
export const rsSurrPair: "[\\ud800-\\udbff][\\udc00-\\udfff]";
export const rsUpper: string;
export const rsZWJ: "\\u200d";
export const rsMiscLower: string;
export const rsMiscUpper: string;
export const rsOptContrLower: string;
export const rsOptContrUpper: string;
export const reOptMod: string;
export const rsOptVar: string;
export const rsOptJoin: string;
export const rsOrdLower: "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])";
export const rsOrdUpper: "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])";
export const rsSeq: string;
export const rsEmoji: string;
export const rsSymbol: string;
/** Used to match apostrophes. */
export const reApos: RegExp;
/**
* Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
* [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
*/
export const reComboMark: RegExp;
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
export const reUnicode: RegExp;
/** Used to match complex or compound words. */
export const reUnicodeWord: RegExp;
/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
export const reHasUnicode: RegExp;
/** Used to detect strings that need a more robust regexp to match words. */
export const reHasUnicodeWord: RegExp;
/** Used to assign default `context` object properties. */
export const contextProps: string[];
/** Used to make template sourceURLs easier to identify. */
export const templateCounter: -1;
/** Used to identify `toStringTag` values of typed arrays. */
export const typedArrayTags: typeof typedArrayTags;
/** Used to identify `toStringTag` values supported by `clone`. */
export const cloneableTags: typeof cloneableTags;
export namespace deburredLetters {
let À: string;
let Á: string;
let Â: string;
let Ã: string;
let Ä: string;
let Å: string;
let à: string;
let á: string;
let â: string;
let ã: string;
let ä: string;
let å: string;
let Ç: string;
let ç: string;
let Ð: string;
let ð: string;
let È: string;
let É: string;
let Ê: string;
let Ë: string;
let è: string;
let é: string;
let ê: string;
let ë: string;
let Ì: string;
let Í: string;
let Î: string;
let Ï: string;
let ì: string;
let í: string;
let î: string;
let ï: string;
let Ñ: string;
let ñ: string;
let Ò: string;
let Ó: string;
let Ô: string;
let Õ: string;
let Ö: string;
let Ø: string;
let ò: string;
let ó: string;
let ô: string;
let õ: string;
let ö: string;
let ø: string;
let Ù: string;
let Ú: string;
let Û: string;
let Ü: string;
let ù: string;
let ú: string;
let û: string;
let ü: string;
let Ý: string;
let ý: string;
let ÿ: string;
let Æ: string;
let æ: string;
let Þ: string;
let þ: string;
let ß: string;
let Ā: string;
let Ă: string;
let Ą: string;
let ā: string;
let ă: string;
let ą: string;
let Ć: string;
let Ĉ: string;
let Ċ: string;
let Č: string;
let ć: string;
let ĉ: string;
let ċ: string;
let č: string;
let Ď: string;
let Đ: string;
let ď: string;
let đ: string;
let Ē: string;
let Ĕ: string;
let Ė: string;
let Ę: string;
let Ě: string;
let ē: string;
let ĕ: string;
let ė: string;
let ę: string;
let ě: string;
let Ĝ: string;
let Ğ: string;
let Ġ: string;
let Ģ: string;
let ĝ: string;
let ğ: string;
let ġ: string;
let ģ: string;
let Ĥ: string;
let Ħ: string;
let ĥ: string;
let ħ: string;
let Ĩ: string;
let Ī: string;
let Ĭ: string;
let Į: string;
let İ: string;
let ĩ: string;
let ī: string;
let ĭ: string;
let į: string;
let ı: string;
let Ĵ: string;
let ĵ: string;
let Ķ: string;
let ķ: string;
let ĸ: string;
let Ĺ: string;
let Ļ: string;
let Ľ: string;
let Ŀ: string;
let Ł: string;
let ĺ: string;
let ļ: string;
let ľ: string;
let ŀ: string;
let ł: string;
let Ń: string;
let Ņ: string;
let Ň: string;
let Ŋ: string;
let ń: string;
let ņ: string;
let ň: string;
let ŋ: string;
let Ō: string;
let Ŏ: string;
let Ő: string;
let ō: string;
let ŏ: string;
let ő: string;
let Ŕ: string;
let Ŗ: string;
let Ř: string;
let ŕ: string;
let ŗ: string;
let ř: string;
let Ś: string;
let Ŝ: string;
let Ş: string;
let Š: string;
let ś: string;
let ŝ: string;
let ş: string;
let š: string;
let Ţ: string;
let Ť: string;
let Ŧ: string;
let ţ: string;
let ť: string;
let ŧ: string;
let Ũ: string;
let Ū: string;
let Ŭ: string;
let Ů: string;
let Ű: string;
let Ų: string;
let ũ: string;
let ū: string;
let ŭ: string;
let ů: string;
let ű: string;
let ų: string;
let Ŵ: string;
let ŵ: string;
let Ŷ: string;
let ŷ: string;
let Ÿ: string;
let Ź: string;
let Ż: string;
let Ž: string;
let ź: string;
let ż: string;
let ž: string;
let IJ: string;
let ij: string;
let Œ: string;
let œ: string;
let ʼn: string;
let ſ: string;
}
/** Used to map characters to HTML entities. */
export const htmlEscapes: {
'&': string;
'<': string;
'>': string;
'"': string;
"'": string;
};
/** Used to map HTML entities to characters. */
export const htmlUnescapes: {
'&': string;
'<': string;
'>': string;
'"': string;
''': string;
};
/** Used to escape characters for inclusion in compiled string literals. */
export const stringEscapes: {
'\\': string;
"'": string;
'\n': string;
'\r': string;
'\u2028': string;
'\u2029': string;
};
export const freeParseFloat: typeof parseFloat;
export const freeParseInt: typeof parseInt;
/** Detect free variable `global` from Node. */
export const freeGlobal: typeof globalThis;
/** Detect free variable `self`. */
export const freeSelf: Window & typeof globalThis;
/** Used as a reference to the global object. */
export const root: any;
/** Detect free variable `exports`. */
export const freeExports: any;
/** Detect free variable `module`. */
export const freeModule: NodeModule;
/** Detect the popular CommonJS extension `module.exports`. */
export const moduleExports: boolean;
/** Detect free variable `process` from Node. */
export const freeProcess: NodeJS.Process;
/** Used to access faster Node helpers. */
export const nodeUtil: any;
export const nodeIsArrayBuffer: any;
export const nodeIsDate: any;
export const nodeIsMap: any;
export const nodeIsRegExp: any;
export const nodeIsSet: any;
export const nodeIsTypedArray: any;
export const arrayProto: any[];
export const funcProto: Function;
export const objectProto: Object;
/** Used to resolve the decompiled source of functions. */
export const funcToString: () => string;
/** Used to check objects for own properties. */
export const hasOwnProperty: (v: PropertyKey) => boolean;
/** Used to generate unique IDs. */
export const idCounter: 0;
/** Used to detect methods masquerading as native. */
export const maskSrcKey: "";
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
export const nativeObjectToString: () => string;
/** Used to infer the `Object` constructor. */
export const objectCtorString: any;
export const allocUnsafe: any;
export const getPrototype: Function;
export const objectCreate: {
(o: object): any;
(o: object, properties: PropertyDescriptorMap & ThisType<any>): any;
};
export const propertyIsEnumerable: (v: PropertyKey) => boolean;
export const splice: {
(start: number, deleteCount?: number): any[];
(start: number, deleteCount: number, ...items: any[]): any[];
};
export const spreadableSymbol: symbol;
export const symIterator: symbol;
export const symToStringTag: symbol;
export const defineProperty: <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T;
/** Mocked built-ins. */
export const ctxClearTimeout: typeof clearTimeout;
export const ctxNow: () => number;
export const ctxSetTimeout: typeof setTimeout;
export const nativeCeil: (x: number) => number;
export const nativeFloor: (x: number) => number;
export const nativeGetSymbols: (o: any) => symbol[];
export const nativeIsBuffer: any;
export const nativeIsFinite: typeof isFinite;
export const nativeJoin: (separator?: string) => string;
export const nativeKeys: Function;
export const nativeMax: (...values: number[]) => number;
export const nativeMin: (...values: number[]) => number;
export const nativeNow: () => number;
export const nativeParseInt: typeof parseInt;
export const nativeRandom: () => number;
export const nativeReverse: () => any[];
export const nativeCreate: {
(o: object): any;
(o: object, properties: PropertyDescriptorMap & ThisType<any>): any;
};
/** Used to store function metadata. */
export const metaMap: WeakMap<object, any>;
/** Used to lookup unminified function names. */
export const realNames: {};
export const dataViewCtorString: string;
export const mapCtorString: string;
export const promiseCtorString: string;
export const setCtorString: string;
export const weakMapCtorString: string;
export const symbolProto: Symbol;
export const symbolValueOf: () => symbol;
export const symbolToString: () => string;