Skip to content

Commit

Permalink
ts seneca prior
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Apr 9, 2022
1 parent 4397327 commit 8e4d9a6
Show file tree
Hide file tree
Showing 13 changed files with 1,754 additions and 930 deletions.
22 changes: 21 additions & 1 deletion lib/plugin.d.ts
@@ -1 +1,21 @@
export {};
import { Ordu } from 'ordu';
declare function api_use(callpoint: any, opts: any): {
use: (this: any) => any;
ordu: Ordu;
tasks: any;
};
declare const Plugin: {
api_use: typeof api_use;
intern: {
op: {
seneca_plugin: (tr: any, ctx: any, data: any) => any;
seneca_export: (tr: any, ctx: any, data: any) => any;
seneca_options: (tr: any, ctx: any, data: any) => any;
seneca_complete: (tr: any, _ctx: any, data: any) => any;
};
define_plugin: (delegate: any, plugin: any, options: any) => any;
prepare_spec: (Joi: any, spec: any, opts: any, ctxt: any) => any;
walk: (Joi: any, start_joiobj: any, obj: any, path: any, opts: any, ctxt: any, mod: any) => any;
};
};
export { Plugin };
9 changes: 7 additions & 2 deletions lib/plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/plugin.js.map

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions lib/plugin.ts
Expand Up @@ -16,10 +16,7 @@ const { Print } = require('./print')
/* $lab:coverage:on$ */


exports.api_use = api_use


const intern = exports.intern = make_intern()
const intern = make_intern()


function api_use(callpoint: any, opts: any) {
Expand Down Expand Up @@ -989,3 +986,14 @@ function make_intern() {
}
}
}


const Plugin = {
api_use,
intern,
}


export {
Plugin
}
5 changes: 5 additions & 0 deletions lib/prior.d.ts
@@ -0,0 +1,5 @@
declare function api_prior(this: any): any;
declare const Prior: {
api_prior: typeof api_prior;
};
export { Prior };
190 changes: 86 additions & 104 deletions lib/prior.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/prior.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8e4d9a6

Please sign in to comment.