UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

65 lines (34 loc) 1.15 kB
--- lang: en title: 'API docs: repository-json-schema.stringtypetowrapper' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/repository-json-schema permalink: /doc/en/lb4/apidocs.repository-json-schema.stringtypetowrapper.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/repository-json-schema](./repository-json-schema.md) &gt; [stringTypeToWrapper](./repository-json-schema.stringtypetowrapper.md) ## stringTypeToWrapper() function Gets the wrapper function of primitives string, number, and boolean **Signature:** ```typescript export declare function stringTypeToWrapper(type: string | Function): Function; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> type </td><td markdown="1"> string \| Function </td><td markdown="1"> Name of type </td></tr> </tbody></table> **Returns:** Function