@imqueue/rpc
Version:
RPC-like client-service implementation over messaging queue
20 lines (19 loc) • 499 B
TypeScript
import { Thunk } from '..';
/**
* Implements '@indexed' decorator factory
* This is used to specify complex service types which are need to expose
* types containing indexed definition, for example:
*
* @example
* ~~~typescript
* import { type } from '@imqueue/rpc';
*
* @indexed('[fieldName: string]: any')
* class Schema {
* [fieldName: string]: any
* }
* ~~~
*
* @return {(constructor: Function) => void}
*/
export declare function indexed(indexTypedef: string | Thunk): any;