JSPM

@clerk/types

5.0.0-snapshot.v20250528192432
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 591062
  • Score
    100M100P100Q175905F
  • License MIT

Typings for Clerk libraries.

Package Exports

  • @clerk/types
  • @clerk/types/dist/esm/index.js
  • @clerk/types/dist/index.js

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 (@clerk/types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme


@clerk/types


Getting Started

This package provides the TypeScript type declarations for Clerk's SDKs.

[!NOTE] Clerk's SDKs automatically include their own type definitions so typically it's not necessary to install @clerk/types separately.

Installation

npm install @clerk/types --save-dev

Usage

Import types from @clerk/types like so:

import type { OAuthStrategy } from '@clerk/types';

export type OAuthProps = {
  oAuthOptions: OAuthStrategy[];
  error?: string;
  setError?: React.Dispatch<React.SetStateAction<string | undefined>>;
};

You can also override Clerk interfaces with custom types.

Support

You can get in touch with us in any of the following ways:

Contributing

We're open to all community contributions! If you'd like to contribute in any way, please read our contribution guidelines and code of conduct.

Security

@clerk/types follows good practices of security, but 100% security cannot be assured.

@clerk/types is provided "as is" without any warranty. Use at your own risk.

For more information and to report security issues, please refer to our security documentation.

License

This project is licensed under the MIT license.

See LICENSE for more information.