Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(line): add missing layer 'crosshair' to TypeScript definition #917

Merged
merged 1 commit into from May 10, 2020

Conversation

dancallaghan
Copy link
Contributor

Resolves #862

@dancallaghan
Copy link
Contributor Author

If anyone else is having this issue, in the meantime you can override it in your project:

// custom.d.ts
declare module '@nivo/line' {
    export type LineLayerType =
        | 'grid'
        | 'markers'
        | 'axes'
        | 'areas'
        | 'crosshair'
        | 'lines'
        | 'slices'
        | 'points'
        | 'mesh'
        | 'legends';
}

@plouc
Copy link
Owner

plouc commented May 10, 2020

Thank you for your contribution @dancallaghan!

@plouc plouc merged commit 81d8fa0 into plouc:master May 10, 2020
@dancallaghan dancallaghan deleted the line-layer-typescript-crosshair branch May 10, 2020 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'crosshair' missing in layer type definition of ResponsiveLine chart
2 participants