diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..8ada62c --- /dev/null +++ b/index.d.ts @@ -0,0 +1,18 @@ +import { Context } from "probot"; + +type StringOrNumber = number | string; +type Key = + | { [key: string]: StringOrNumber } + | StringOrNumber[] + | StringOrNumber; +type Value = Key; + +declare function metadata( + context: Context, + issue?: { body: string; [key: string]: any } +): { + get(key?: Key): Promise; + set(key: Key, value: Value): Promise; +}; + +export = metadata;