This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Parse Express Router Layers into something usable, with | |
* formatted paths, parameters lists, and ancestry tracking. | |
*/ | |
/** | |
* A "reduced layer", the output of `reduceStack`. Has | |
* simplified information in it. | |
*/ | |
export interface ReducedLayer { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Wrap a web storage with a prefix. | |
* @author Michael Fedora | |
* @link https://gist.github.com/MichaelFedora/031e1ec7a3df736b2b004d6b437e526e | |
*/ | |
export class WrappedStorage implements Storage { | |
#store: Storage; | |
#prefix: string; | |
#key(k: string): string { return `${this.#prefix}_${k}`; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface TinyRequest { | |
// CORE (std) | |
url: string; | |
method: string; | |
headers: Headers; | |
json<T = unknown>(): Promise<T>; | |
text(): Promise<string>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* PlayCanvas Engine Typings | |
* | |
* Use it by downloading and placing both this and `playcanvas-stable.js` in the same directory. | |
* | |
* (c) 2017 Michael Fedora (michaelfedora.github.io) | |
* Licensed under MIT. | |
*/ | |
type DomKeyboardEvent = KeyboardEvent; |