From 8075b32e3afcffe667c5b0c459ea69c5e0f697d6 Mon Sep 17 00:00:00 2001 From: Jeremy Forsythe Date: Mon, 1 Mar 2021 21:10:30 -0500 Subject: [PATCH] Export IWithData and IWithForm types Fixes #63 Exports IWithData and IWithForm types Explicitly makes generic extend IOptionsBase Changes IWithData's data property to be string, Buffer, or object (allows strings, Buffers, objects, or arrays) No behavior is affected so no new tests were written --- docs/global.html | 8 +++++++- docs/index.html | 33 ++++++++++++++------------------- docs/phin.js.html | 16 +++++++++++++--- lib/phin.js | 2 +- types.d.ts | 36 +++++++++++++++++------------------- 5 files changed, 52 insertions(+), 43 deletions(-) diff --git a/docs/global.html b/docs/global.html index 90874c8..a77b327 100644 --- a/docs/global.html +++ b/docs/global.html @@ -398,6 +398,12 @@
Properties:
string +| + +Buffer +| + +object @@ -1084,7 +1090,7 @@

Home

Global