@tomic/cli

0.39.0 • Public • Published

Check out the docs here.

@tomic/cli is an NPM tool that helps the developer with creating a front-end for their atomic data project by providing typesafety on resources. In atomic data you can create ontologies that describe your business model. You can use @tomic/cli to generate Typscript types for these ontologies in your front-end.

import { Post } from './ontolgies/blog'; // <--- generated

const myBlogpost = await store.getResourceAsync<Post>(
  'https://myblog.com/atomic-is-awesome',
);

const comments = myBlogpost.props.comments; // string[] automatically inferred!

Readme

Keywords

none

Package Sidebar

Install

npm i @tomic/cli

Weekly Downloads

8

Version

0.39.0

License

MIT

Unpacked Size

42.5 kB

Total Files

40

Last publish

Collaborators

  • polle
  • joepio