99941cf4ed79aa21d266f965267d3865d8e5fdb9
Christian Fraß [add] lib:plankton

Christian Fraß authored 3 years ago

lib/plankton/call/logic-decl.d.ts          1) declare module lib_call {
lib/plankton/call/logic-decl.d.ts          2)     /**
lib/plankton/call/logic-decl.d.ts          3)      * @desc hacked class for postfix function application
lib/plankton/call/logic-decl.d.ts          4)      * @author fenris
lib/plankton/call/logic-decl.d.ts          5)      */
lib/plankton/call/logic-decl.d.ts          6)     class class_valuewrapper<type_value> {
lib/plankton/call/logic-decl.d.ts          7)         /**
lib/plankton/call/logic-decl.d.ts          8)          * @author fenris
lib/plankton/call/logic-decl.d.ts          9)          */
lib/plankton/call/logic-decl.d.ts         10)         protected value: type_value;
lib/plankton/call/logic-decl.d.ts         11)         /**
lib/plankton/call/logic-decl.d.ts         12)          * @desc [constructor]
lib/plankton/call/logic-decl.d.ts         13)          * @author fenris
lib/plankton/call/logic-decl.d.ts         14)          */
lib/plankton/call/logic-decl.d.ts         15)         constructor(value: type_value);
lib/plankton/call/logic-decl.d.ts         16)         /**
lib/plankton/call/logic-decl.d.ts         17)          * @desc [accessor] applies a function and returns a new valuewrapper
lib/plankton/call/logic-decl.d.ts         18)          * @author fenris
lib/plankton/call/logic-decl.d.ts         19)          */
lib/plankton/call/logic-decl.d.ts         20)         pass<type_value_>(function_: (value: type_value) => type_value_): class_valuewrapper<type_value_>;
lib/plankton/call/logic-decl.d.ts         21)         /**
lib/plankton/call/logic-decl.d.ts         22)          * @desc [accessor] gives the wrapped value
lib/plankton/call/logic-decl.d.ts         23)          * @author fenris
lib/plankton/call/logic-decl.d.ts         24)          */
lib/plankton/call/logic-decl.d.ts         25)         extract(): type_value;
lib/plankton/call/logic-decl.d.ts         26)     }
lib/plankton/call/logic-decl.d.ts         27)     /**
lib/plankton/call/logic-decl.d.ts         28)      * @desc shortcut for constructing a valuewrapper-object
lib/plankton/call/logic-decl.d.ts         29)      * @author fenris
lib/plankton/call/logic-decl.d.ts         30)      */
lib/plankton/call/logic-decl.d.ts         31)     function vw<type_value>(value: type_value): class_valuewrapper<type_value>;
lib/plankton/call/logic-decl.d.ts         32)     /**
lib/plankton/call/logic-decl.d.ts         33)      * @author fenris
lib/plankton/call/logic-decl.d.ts         34)      */
lib/plankton/call/logic-decl.d.ts         35)     function use<type_input, type_output>(input: type_input, function_: (input: type_input) => type_output): type_output;
lib/plankton/call/logic-decl.d.ts         36)     /**
lib/plankton/call/logic-decl.d.ts         37)      * @desc just the identity; useful for some callbacks etc.
lib/plankton/call/logic-decl.d.ts         38)      * @author fenris
lib/plankton/call/logic-decl.d.ts         39)      */
lib/plankton/call/logic-decl.d.ts         40)     function id<type_value>(x: type_value): type_value;
lib/plankton/call/logic-decl.d.ts         41)     /**
lib/plankton/call/logic-decl.d.ts         42)      * @desc composes two functions (i.e. returns a function that return the result of the successive execution of both input-functions)
lib/plankton/call/logic-decl.d.ts         43)      * @param {function} function_f
lib/plankton/call/logic-decl.d.ts         44)      * @param {function} function_g
lib/plankton/call/logic-decl.d.ts         45)      * @author fenris
lib/plankton/call/logic-decl.d.ts         46)      */
lib/plankton/call/logic-decl.d.ts         47)     function compose<type_x, type_y, type_z>(function_f: (type_x: any) => type_y, function_g: (type_y: any) => type_z): (value: type_x) => type_z;
lib/plankton/call/logic-decl.d.ts         48)     /**
lib/plankton/call/logic-decl.d.ts         49)      * @desc transforms a function with sequential input into a function with leveled input; example: add(2,3) = curryfy(add)(2)(3)
lib/plankton/call/logic-decl.d.ts         50)      * @param {function} f
lib/plankton/call/logic-decl.d.ts         51)      * @param {int} n (don't set manually)
lib/plankton/call/logic-decl.d.ts         52)      * @return {function} the currified version of the in put function
lib/plankton/call/logic-decl.d.ts         53)      * @author fenris
lib/plankton/call/logic-decl.d.ts         54)      */
lib/plankton/call/logic-decl.d.ts         55)     function curryfy(f: Function, n?: int): Function;
lib/plankton/call/logic-decl.d.ts         56) }
lib/plankton/call/logic-decl.d.ts         57) declare module lib_call {
lib/plankton/call/logic-decl.d.ts         58)     /**
lib/plankton/call/logic-decl.d.ts         59)      * @author fenris
lib/plankton/call/logic-decl.d.ts         60)      */
lib/plankton/call/logic-decl.d.ts         61)     type type_executor<type_result, type_reason> = ((resolve: (result?: type_result) => any, reject?: (reason?: type_reason) => void) => void);
lib/plankton/call/logic-decl.d.ts         62)     /**
lib/plankton/call/logic-decl.d.ts         63)      * @author fenris
lib/plankton/call/logic-decl.d.ts         64)      */
lib/plankton/call/logic-decl.d.ts         65)     function executor_resolve<type_result, type_reason>(result: type_result): type_executor<type_result, type_reason>;
lib/plankton/call/logic-decl.d.ts         66)     /**
lib/plankton/call/logic-decl.d.ts         67)      * @author fenris
lib/plankton/call/logic-decl.d.ts         68)      */
lib/plankton/call/logic-decl.d.ts         69)     function executor_reject<type_result, type_reason>(reason: type_reason): type_executor<type_result, type_reason>;
lib/plankton/call/logic-decl.d.ts         70)     /**
lib/plankton/call/logic-decl.d.ts         71)      * @author fenris
lib/plankton/call/logic-decl.d.ts         72)      */
lib/plankton/call/logic-decl.d.ts         73)     function executor_transform<type_result_from, type_error_from, type_result_to, type_error_to>(executor: type_executor<type_result_from, type_error_from>, transform_result: (result_from: type_result_from) => type_result_to, transform_reason: (error_from: type_error_from) => type_error_to): type_executor<type_result_to, type_error_to>;
lib/plankton/call/logic-decl.d.ts         74)     /**
lib/plankton/call/logic-decl.d.ts         75)      * @author fenris
lib/plankton/call/logic-decl.d.ts         76)      */
lib/plankton/call/logic-decl.d.ts         77)     function executor_transform_default<type_result_from, type_result_to>(executor: type_executor<type_result_from, Error>, transform_result: (result_from: type_result_from) => type_result_to, wrap_string?: string): type_executor<type_result_to, Error>;
lib/plankton/call/logic-decl.d.ts         78)     /**
lib/plankton/call/logic-decl.d.ts         79)      * @author fenris
lib/plankton/call/logic-decl.d.ts         80)      */
lib/plankton/call/logic-decl.d.ts         81)     function executor_compose_sequential<type_result_first, type_result_second, type_reason>(first: type_executor<type_result_first, type_reason>, second: (result: type_result_first) => type_executor<type_result_second, type_reason>): type_executor<type_result_second, type_reason>;
lib/plankton/call/logic-decl.d.ts         82)     /**
lib/plankton/call/logic-decl.d.ts         83)      * @author fenris
lib/plankton/call/logic-decl.d.ts         84)      */
lib/plankton/call/logic-decl.d.ts         85)     function executor_chain<type_state, type_error>(state: type_state, executors: Array<(state: type_state) => type_executor<type_state, type_error>>): type_executor<type_state, type_error>;
lib/plankton/call/logic-decl.d.ts         86)     /**
lib/plankton/call/logic-decl.d.ts         87)      * @author fenris
lib/plankton/call/logic-decl.d.ts         88)      */
lib/plankton/call/logic-decl.d.ts         89)     function executor_first<type_result, type_reason>(executors: Array<type_executor<type_result, type_reason>>): type_executor<type_result, Array<type_reason>>;
lib/plankton/call/logic-decl.d.ts         90)     /**
lib/plankton/call/logic-decl.d.ts         91)      * @author fenris
lib/plankton/call/logic-decl.d.ts         92)      */
lib/plankton/call/logic-decl.d.ts         93)     function executor_condense<type_element>(executors: Array<type_executor<type_element, Error>>): type_executor<Array<type_element>, Error>;
lib/plankton/call/logic-decl.d.ts         94)     /**
lib/plankton/call/logic-decl.d.ts         95)      * @author fenris
lib/plankton/call/logic-decl.d.ts         96)      * @deprecated use condense
lib/plankton/call/logic-decl.d.ts         97)      */
lib/plankton/call/logic-decl.d.ts         98)     function executor_filter<type_element>(executors: Array<type_executor<type_element, Error>>, predicate: (element: type_element) => boolean): type_executor<Array<type_element>, Error>;
lib/plankton/call/logic-decl.d.ts         99)     /**
lib/plankton/call/logic-decl.d.ts        100)      * @author fenris
lib/plankton/call/logic-decl.d.ts        101)      * @deprecated use condense
lib/plankton/call/logic-decl.d.ts        102)      */
lib/plankton/call/logic-decl.d.ts        103)     function executor_map<type_element1, type_element2>(executors: Array<type_executor<type_element1, Error>>, transformator: (element1: type_element1) => type_element2): type_executor<Array<type_element2>, Error>;
lib/plankton/call/logic-decl.d.ts        104)     /**
lib/plankton/call/logic-decl.d.ts        105)      * @author fenris
lib/plankton/call/logic-decl.d.ts        106)      * @deprecated use condense
lib/plankton/call/logic-decl.d.ts        107)      */
lib/plankton/call/logic-decl.d.ts        108)     function executor_reduce<type_element, type_result>(executors: Array<type_executor<type_element, Error>>, initial: type_result, accumulator: (result: type_result, element: type_element) => type_result): type_executor<type_result, Error>;
lib/plankton/call/logic-decl.d.ts        109) }
lib/plankton/call/logic-decl.d.ts        110) declare module lib_call {
lib/plankton/call/logic-decl.d.ts        111)     /**
lib/plankton/call/logic-decl.d.ts        112)      * @author fenris
lib/plankton/call/logic-decl.d.ts        113)      */
lib/plankton/call/logic-decl.d.ts        114)     type type_promise<type_result, type_reason> = Promise<type_result>;
lib/plankton/call/logic-decl.d.ts        115)     /**
lib/plankton/call/logic-decl.d.ts        116)      * @author fenris
lib/plankton/call/logic-decl.d.ts        117)      */
lib/plankton/call/logic-decl.d.ts        118)     function promise_reject<type_result, type_reason>(reason: type_reason): type_promise<type_result, type_reason>;
lib/plankton/call/logic-decl.d.ts        119)     /**
lib/plankton/call/logic-decl.d.ts        120)      * @author fenris
lib/plankton/call/logic-decl.d.ts        121)      */
lib/plankton/call/logic-decl.d.ts        122)     function promise_resolve<type_result, type_reason>(result: type_result): type_promise<type_result, type_reason>;
lib/plankton/call/logic-decl.d.ts        123)     /**
lib/plankton/call/logic-decl.d.ts        124)      * @author fenris
lib/plankton/call/logic-decl.d.ts        125)      */
lib/plankton/call/logic-decl.d.ts        126)     function promise_make<type_result, type_reason>(executor: (resolve: (result?: type_result) => void, reject: (reason?: type_reason) => void) => void): type_promise<type_result, type_reason>;
lib/plankton/call/logic-decl.d.ts        127)     /**
lib/plankton/call/logic-decl.d.ts        128)      * @author fenris
lib/plankton/call/logic-decl.d.ts        129)      */
lib/plankton/call/logic-decl.d.ts        130)     function promise_then_close<type_result, type_reason>(promise: type_promise<type_result, type_reason>, resolver: (result: type_result) => void, rejector: (reason: type_reason) => void): void;
lib/plankton/call/logic-decl.d.ts        131)     /**
lib/plankton/call/logic-decl.d.ts        132)      * @author fenris
lib/plankton/call/logic-decl.d.ts        133)      */
lib/plankton/call/logic-decl.d.ts        134)     function promise_then_append<type_result, type_reason, type_result_>(promise: type_promise<type_result, type_reason>, resolver: (result: type_result) => type_promise<type_result_, type_reason>, rejector?: (reason: type_reason) => type_promise<type_result_, type_reason>): type_promise<type_result_, type_result>;
lib/plankton/call/logic-decl.d.ts        135)     /**
lib/plankton/call/logic-decl.d.ts        136)      * @author fenris
lib/plankton/call/logic-decl.d.ts        137)      */
lib/plankton/call/logic-decl.d.ts        138)     function promise_all<type_result, type_reason>(promises: Array<type_promise<type_result, type_reason>>): type_promise<Array<type_result>, type_reason>;
lib/plankton/call/logic-decl.d.ts        139)     /**
lib/plankton/call/logic-decl.d.ts        140)      * @author fenris
lib/plankton/call/logic-decl.d.ts        141)      */
lib/plankton/call/logic-decl.d.ts        142)     function promise_chain<type_result, type_reason>(promises: Array<(input: type_result) => type_promise<type_result, type_reason>>, start?: type_result): type_promise<type_result, type_reason>;
lib/plankton/call/logic-decl.d.ts        143)     /**
lib/plankton/call/logic-decl.d.ts        144)      * @author fenris
lib/plankton/call/logic-decl.d.ts        145)      */
lib/plankton/call/logic-decl.d.ts        146)     function promise_condense<type_element, type_reason>(promises: Array<() => type_promise<type_element, type_reason>>): type_promise<Array<type_element>, type_reason>;
lib/plankton/call/logic-decl.d.ts        147)     /**
lib/plankton/call/logic-decl.d.ts        148)      * @author fenris
lib/plankton/call/logic-decl.d.ts        149)      */
lib/plankton/call/logic-decl.d.ts        150)     function promise_group<type_reason>(promises: {
lib/plankton/call/logic-decl.d.ts        151)         [name: string]: () => type_promise<any, type_reason>;
lib/plankton/call/logic-decl.d.ts        152)     }, serial?: boolean): type_promise<{
lib/plankton/call/logic-decl.d.ts        153)         [name: string]: any;
lib/plankton/call/logic-decl.d.ts        154)     }, type_reason>;
lib/plankton/call/logic-decl.d.ts        155)     /**
lib/plankton/call/logic-decl.d.ts        156)      * @author fenris
lib/plankton/call/logic-decl.d.ts        157)      */
Christian Fraß [upd] server:lib:plankton

Christian Fraß authored 3 years ago

server/lib/plankton/call/logic-decl.d.ts 158)     function promise_wrap<type_result_inner, type_result_outer, type_reason>(promise: type_promise<type_result_inner, type_reason>, transformator_result: (reason: type_result_inner) => type_result_outer, transformator_reason?: (reason: type_reason) => type_reason): type_promise<type_result_outer, type_reason>;
Christian Fraß [add] lib:plankton

Christian Fraß authored 3 years ago

lib/plankton/call/logic-decl.d.ts        159)     /**
lib/plankton/call/logic-decl.d.ts        160)      * @author fenris
lib/plankton/call/logic-decl.d.ts        161)      */
lib/plankton/call/logic-decl.d.ts        162)     function promise_show<type_result, type_reason>(label: string): (result: type_result) => type_promise<type_result, type_reason>;
lib/plankton/call/logic-decl.d.ts        163)     /**
lib/plankton/call/logic-decl.d.ts        164)      * @author fenris
lib/plankton/call/logic-decl.d.ts        165)      */
lib/plankton/call/logic-decl.d.ts        166)     function promise_log<type_result, type_reason>(result: type_result): (result: type_result) => type_promise<type_result, type_reason>;
lib/plankton/call/logic-decl.d.ts        167)     /**
lib/plankton/call/logic-decl.d.ts        168)      * @author fenris
lib/plankton/call/logic-decl.d.ts        169)      */
lib/plankton/call/logic-decl.d.ts        170)     function promise_attach<type_reason>(state: {
lib/plankton/call/logic-decl.d.ts        171)         [name: string]: any;
lib/plankton/call/logic-decl.d.ts        172)     }, promise: type_promise<any, type_reason>, name: string): type_promise<{
lib/plankton/call/logic-decl.d.ts        173)         [name: string]: any;
lib/plankton/call/logic-decl.d.ts        174)     }, type_reason>;
lib/plankton/call/logic-decl.d.ts        175)     /**
lib/plankton/call/logic-decl.d.ts        176)      * @author fenris
lib/plankton/call/logic-decl.d.ts        177)      */
Christian Fraß [upd] server:lib:plankton

Christian Fraß authored 3 years ago

server/lib/plankton/call/logic-decl.d.ts 178)     function promise_delay<type_result, type_reason>(promise: type_promise<type_result, type_reason>, delay: int): type_promise<type_result, type_reason>;