npm.io
1.10.12 • Published 4 years ago

@furo/navigation

Licence
MIT
Version
1.10.12
Deps
3
Size
209 kB
Vulns
0
Weekly
0
Stars
12

@furo/navigation

Furo navigation components

What is inside

Elements

Required specs

The ./specs folder contains the signatures which you need or must fulfill to work with some components of this package.

standalone usage

If you just want to use the types with the data-objects and doing the server communication by your own or you just import some json files, you can add the types and services to your application by doing the following:

// first import the spec (scr/configs/init.js is a good place)
import spec from '@furo/navigation/specs/navigation/navigationnode.type.spec.js'

// then add / register the type
Init.addApiTypeSpec("navigation.Navigationnode", spec)
usage with @furo/specs

If you work with spec projects, import the specs dir in your furo.spec.conf.json.

{
  "import_spec_dirs": [
      "node_modules/@furo/spec-basetypes", 
      "node_modules/@furo/navigation/src/specs"
  ]
}

If want to make some changes, just use this specs as a reference for the type signature.