@featureboard/contracts
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

FeatureBoard Contracts

TypeScript type definitions for FeatureBoard SDKs.

npm npm GitHub Workflow

Installation

npm add @featureboard/contracts
yarn add @featureboard/contracts
pnpm add @featureboard/contracts

Example

export interface EffectiveFeatureValue {
  featureKey: string
  value: string | boolean | number
}

Why TypeScript type definitions?

We provide TypeScript type definitions to establish consistent interfaces between our client and server SDKs, facilitating seamless integration with universal JavaScript application frameworks such as Remix and Next.js.

The advantages of using TypeScript type definitions are:

  • Type safety: TypeScript helps catch type-related errors during development, reducing the chance of runtime errors.
  • Code quality: Strong typing enhances code quality, making it more self-documenting, understandable, and maintainable.
  • Tooling support: TypeScript-aware editors and IDEs provide better autocompletion, code navigation, and error checking, leading to increased productivity.
  • Interoperability: TypeScript definitions enable seamless integration with other TypeScript projects.

Release notes

Our changelog can be found on Github.

Package Sidebar

Install

npm i @featureboard/contracts

Weekly Downloads

129

Version

0.5.0

License

MIT

Unpacked Size

52.7 kB

Total Files

36

Last publish

Collaborators

  • arkahna-npm
  • karimoran
  • jakeginnivan