It's 2024. You should use tsup instead of this.
🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle + type-checking
It's 2024. You should use tsup instead of this.
🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle + type-checking
export type Class = new (...args: any[]) => any; | |
export function DisposableMixin<Base extends Class>(base: Base) { | |
return class extends base { | |
isDisposed: boolean = false; | |
dispose() { | |
this.isDisposed = true; | |
} | |
}; | |
} |
/** | |
* Cross-browser support for caretPositionFromPoint. | |
* This returns a `CaretPosition` like object instead | |
* of a CaretPosition, since we can't create it for | |
* browsers that don't support this API. | |
*/ | |
function caretPositionFromPoint(x: number, y: number): { | |
offsetNode: Node; | |
offset: number; | |
getClientRect(): ClientRect | DOMRect; |
This is a Cheat Sheet for interacting with the Mongo Shell ( mongo on your command line). This is for MongoDB Community Edition.
Mongo Manual can help you with getting started using the Shell.
FAQ for MongoDB Fundamentals and other FAQs can be found in the side-bar after visiting that link.
let isRefreshing = false; | |
let refreshSubscribers = []; | |
const instance = axios.create({ | |
baseURL: Config.API_URL, | |
}); | |
instance.interceptors.response.use(response => { | |
return response; | |
}, error => { |
Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. Let’s Encrypt is a service provided by the Internet Security Research Group (ISRG). This guide shows you how you can obtain a free SSL certificate.