sbx-utils-lib
v2.2.0-query-1
Published
utilities for sbx company
Downloads
149
Readme
Getting Started
First, run the development server:
npm install sbx-utils-lib
# or
yarn add sbx-utils-lib
if the extended-types.d.ts file is not copied to the root of your project, you can copy it manually from the
node_modules/sbx-utils-lib/lib/extended-types.d.ts
to the root of your project.
Example import to init properties
import sbxInit from 'sbx-utils-lib/lib/properties';
//Call here
sbxInit();
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
Some examples extended types
String.toDate(); // return Date
String.capitalize(); // return string with first letter capitalized
Date.toFormattedDate("yyyy-MM-dd"); // return string use date-fns
Array.toMap(String); // return Map<string, any>