New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gitcoin/types

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitcoin/types

Shared TypeScript types and interfaces for the Gitcoin Core Design System.

  • 0.0.0-beta.23
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
decreased by-80.41%
Maintainers
0
Weekly downloads
 
Created
Source

@gitcoin/types

Shared TypeScript types and interfaces for the Gitcoin Core Design System.

Overview

This package contains centralized TypeScript type definitions used across the Gitcoin monorepo to ensure type consistency between packages and applications.

Structure

.
├── src/
│   ├── button.ts      # Button component types
│   └── index.ts       # Public type exports
│
├── tsconfig.json      # TypeScript configuration
└── tsup.config.ts     # Build configuration

Usage

import { ButtonProps, ButtonSize, ButtonVariant } from '@gitcoin/types'

// Use in your components
interface MyButtonProps extends ButtonProps {
  customProp?: string
}

// Use type unions
type Size = ButtonSize // 'sm' | 'md' | 'lg'

// Use variants
type Variant = ButtonVariant // 'primary' | 'secondary' | 'ghost'

Available Types

Component Props

  • ButtonProps: Props interface for button components
    • size: Size variants
    • variant: Style variants
    • Common button attributes

Common Types

  • Size unions
  • Variant unions
  • Shared utility types

Development

# Build types
pnpm build

# Watch mode
pnpm dev

# Type checking
pnpm lint

Build

This package uses tsup for building, which provides:

  • Type declaration file generation
  • Clean builds
  • Watch mode
  • Tree-shaking
  • CommonJS and ESM output

License

AGPL-3.0 - see the LICENSE file for details.

FAQs

Package last updated on 24 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc