@ottili/foundation-contracts
v1.0.13
Published
Pure TypeScript contracts for the Ottili Foundation Framework. No React, no browser globals — see docs/OTTILI_FOUNDATION_FRAMEWORK_SOURCE_OF_TRUTH.md §8.1.
Downloads
1,465
Readme
@ottili/foundation-contracts
Pure TypeScript contracts for the Ottili Foundation Framework. No React, no browser globals — see docs/OTTILI_FOUNDATION_FRAMEWORK_SOURCE_OF_TRUTH.md §8.1.
Install
npm install @ottili/foundation-contractsThis package is part of the Ottili Foundation Framework. See docs/OTTILI_FOUNDATION_FRAMEWORK_SOURCE_OF_TRUTH.md for the canonical spec.
Public API
- Shared type definitions:
FoundationContext,FoundationCommand,SearchResult,NavigationContribution,FoundationNotification,OttiliProductManifest,ExtensionManifest, and more. - Constants
FOUNDATION_CONTRACT_VERSIONandFOUNDATION_VERSION. - Error codes, settings, customization, integrations, actions, events, platform, capabilities, and saved-view contracts.
Usage
import {
FOUNDATION_VERSION,
type FoundationContext,
type FoundationCommand,
} from "@ottili/foundation-contracts";
console.log(FOUNDATION_VERSION); // "1.0.0"
type MyCommand = FoundationCommand;
type MyContext = FoundationContext;