@types/gatsby-plugin-breakpoints
TypeScript icon, indicating that this package has built-in type declarations

1.3.5 • Public • Published

Installation

npm install --save @types/gatsby-plugin-breakpoints

Summary

This package contains type definitions for gatsby-plugin-breakpoints (https://github.com/JimmyBeldone/gatsby-plugin-breakpoints).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gatsby-plugin-breakpoints.

index.d.ts

/**
 * @see https://www.gatsbyjs.com/plugins/gatsby-plugin-breakpoints/
 */

export type BreakpointsObject = Record<string, boolean>;

export type QueriesObject = Record<string, string>;
export interface BreakpointProps {
    breakpoints: BreakpointsObject;
}

export interface BreakpointProviderProps {
    children: React.ReactNode;
    queries: QueriesObject;
}

export interface BreakpointOptions {
    queries?: QueriesObject | undefined;
}
export interface BreakpointConfig {
    resolve: "gatsby-plugin-breakpoints";
    options?: BreakpointOptions | undefined;
}

export function useBreakpoint(): BreakpointsObject;

export function withBreakpoints<P extends BreakpointProps>(Component: React.ComponentType<P>): React.ComponentType<P>;

export const BreakpointContext: React.Context<QueriesObject>;

export const BreakpointProvider: React.ProviderExoticComponent<BreakpointProviderProps>;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Iva Kop.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/gatsby-plugin-breakpoints

Weekly Downloads

973

Version

1.3.5

License

MIT

Unpacked Size

4.46 kB

Total Files

5

Last publish

Collaborators

  • types