formacao
This commit is contained in:
+8
-1
@@ -23,6 +23,10 @@ declare function assertTypes(value: unknown, name: string, types: string[]): voi
|
||||
declare function isPrimitive(value: unknown): boolean;
|
||||
declare function slash(path: string): string;
|
||||
declare function cleanUrl(url: string): string;
|
||||
declare function splitFileAndPostfix(path: string): {
|
||||
file: string;
|
||||
postfix: string;
|
||||
};
|
||||
declare const isExternalUrl: (url: string) => boolean;
|
||||
/**
|
||||
* Prepend `/@id/` and replace null byte so the id is URL-safe.
|
||||
@@ -35,6 +39,7 @@ declare function wrapId(id: string): string;
|
||||
*/
|
||||
declare function unwrapId(id: string): string;
|
||||
declare function withTrailingSlash(path: string): string;
|
||||
declare function filterOutComments(s: string): string;
|
||||
declare function isBareImport(id: string): boolean;
|
||||
declare function toArray<T>(array?: Nullable<Arrayable<T>>): Array<T>;
|
||||
declare function isObject(item: unknown): boolean;
|
||||
@@ -60,6 +65,7 @@ declare function createDefer<T>(): DeferPromise<T>;
|
||||
*/
|
||||
declare function getCallLastIndex(code: string): number | null;
|
||||
declare function isNegativeNaN(val: number): boolean;
|
||||
declare function ordinal(i: number): string;
|
||||
/**
|
||||
* Deep merge :P
|
||||
*
|
||||
@@ -68,6 +74,7 @@ declare function isNegativeNaN(val: number): boolean;
|
||||
* Do not merge types - it is very expensive and usually it's better to case a type here
|
||||
*/
|
||||
declare function deepMerge<T extends object = object>(target: T, ...sources: any[]): T;
|
||||
declare function unique<T>(array: T[]): T[];
|
||||
|
||||
export { assertTypes, cleanUrl, clone, createDefer, createSimpleStackTrace, deepClone, deepMerge, getCallLastIndex, getOwnProperties, getType, isBareImport, isExternalUrl, isNegativeNaN, isObject, isPrimitive, nanoid, noop, notNullish, objectAttr, shuffle, slash, toArray, unwrapId, withTrailingSlash, wrapId };
|
||||
export { assertTypes, cleanUrl, clone, createDefer, createSimpleStackTrace, deepClone, deepMerge, filterOutComments, getCallLastIndex, getOwnProperties, getType, isBareImport, isExternalUrl, isNegativeNaN, isObject, isPrimitive, nanoid, noop, notNullish, objectAttr, ordinal, shuffle, slash, splitFileAndPostfix, toArray, unique, unwrapId, withTrailingSlash, wrapId };
|
||||
export type { DeferPromise };
|
||||
|
||||
Reference in New Issue
Block a user