jwillinghalpern / fm-gofer

An easy fetch-like promise library for FileMaker WebViewer apps and widgets.
ISC License
19 stars 2 forks source link

Export type for the parameter that fm-gofer sends to FileMaker scripts #25

Closed jwillinghalpern closed 2 years ago

jwillinghalpern commented 2 years ago

That way, when using fm-gofer and fm-mock together, you can declare the parameter passed into the mock FM script and it makes writing mocks easier, with more autocomplete.

One thing... I'm not sure if you can declare a type for a stringified JSON object and validate the various keys.

Reading this thread, this might be a bit beyond my current grasp of Typescript.

jwillinghalpern commented 2 years ago

fixed in #28