Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ declare module '@primer/components' {

export const CounterLabel: React.FunctionComponent<CounterLabelProps>

export interface GridProps extends BoxProps, StyledSystem.GridProps, Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'> {}

export const Grid: React.FunctionComponent<GridProps>
Comment on lines +194 to +196
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should we put this above the CounterLabelProps? Right now it's separating the CounterLabelProps from the export const CounterLabel... line.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes good call! This file need some alphabetizing love as well at some point!


export interface LabelProps extends CommonProps, Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'> {
outline?: boolean
variant?: 'small' | 'medium' | 'large' | 'xl'
Expand Down Expand Up @@ -457,6 +461,11 @@ declare module '@primer/components/src/Flash' {
export default Flash
}

declare module '@primer/components/src/Grid' {
import {Grid} from '@primer/components'
export default Grid
}

declare module '@primer/components/src/CounterLabel' {
import {CounterLabel} from '@primer/components'
export default CounterLabel
Expand Down