Package Exports
- @rdfdev/prop-types
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rdfdev/prop-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
js.rdf.dev/prop-types
React prop-type declarations for the RDF data structures.
Example
import PropTypes from "prop-types";
import RDFTypes from "@rdfdev/prop-types";
const MyComponent = () => {}; // Omitted for brevity
MyComponent.propTypes = {
// The name as an RDF Literal (e.g. xsd:string)
name: RDFTypes.literal,
// The IRI of the author
author: RDFTypes.namedNode,
// The statements/quads on their books.
bookData: PropTypes.arrayOf(RDFTypes.quad),
// A link to the comments, either an IRI (e.g. https) or blank (temporary document-scoped link)
comments: RDFTypes.nodeType,
};
See also
See the js.rdf.dev documentation
Need help with linked data?
This package is brought to you by Ontola. We build production-grade linked data solutions and can help you from advice to building custom web services.