@hugoalh/djb2a
Version:
A CLI and module to get the non-cryptographic hash of the data with algorithm DJB2a.
36 lines • 1.04 kB
TypeScript
declare global {
interface ImportMeta {
/** A flag that indicates if the current module is the main module that was
* called when starting the program under Deno.
*
* ```ts
* if (import.meta.main) {
* // this was loaded as the main module, maybe do some bootstrapping
* }
* ```
*/
main: boolean;
/** A function that returns resolved specifier as if it would be imported
* using `import(specifier)`.
*
* ```ts
* console.log(import.meta.resolve("./foo.js"));
* // file:///dev/foo.js
* ```
*/
resolve(specifier: string): string;
}
}
export {};
declare global {
interface Object {
/**
* Determines whether an object has a property with the specified name.
* @param o An object.
* @param v A property name.
*/
hasOwn(o: object, v: PropertyKey): boolean;
}
}
export {};
//# sourceMappingURL=_dnt.polyfills.d.ts.map