From f296b8621e15be75e47006ac41d071fc4a080c0e Mon Sep 17 00:00:00 2001 From: Daniel Lamando Date: Sun, 27 Dec 2020 00:57:07 +0100 Subject: [PATCH] Export Reflector since to seems fine --- common.ts | 6 ++++++ mod.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/common.ts b/common.ts index e7e4fcd..d0190ec 100644 --- a/common.ts +++ b/common.ts @@ -39,6 +39,12 @@ export type JSONValue = JSONPrimitive | JSONObject | JSONArray; export type JSONObject = {[key: string]: JSONValue}; export type JSONArray = JSONValue[]; +// Constraint for when these fields will surely be present +export type ApiKind = { + apiVersion: string; + kind: string; +} + // Types seen in a resource watch stream export type WatchEvent = WatchEventObject | WatchEventError | WatchEventBookmark; export type WatchEventObject = { diff --git a/mod.ts b/mod.ts index 440323e..7b40222 100644 --- a/mod.ts +++ b/mod.ts @@ -1,5 +1,6 @@ export * from './common.ts'; export * from './stream-transformers.ts'; +export { Reflector } from './reflector.ts'; /** * There are multiple very different types of HTTP client in this repo!