docs: add separate graph type import section to README and update type definitions

Introduced a new README section explaining how to import graph types individually to enable tree shaking. Updated `package.json` exports to support direct graph type imports. Enhanced `GraphNoun` structure by adding optional `label` and `embeddedVerbs` properties while simplifying the `CreatorMetadata` interface.
This commit is contained in:
David Snelling 2025-05-28 09:56:24 -07:00
parent d86962100c
commit ce9c5e2522
3 changed files with 36 additions and 2 deletions

View file

@ -11,6 +11,10 @@
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./types/graphTypes": {
"import": "./dist/types/graphTypes.js",
"types": "./dist/types/graphTypes.d.ts"
}
},
"engines": {