Skip to content

Instantly share code, notes, and snippets.

@bali182
Created May 31, 2016 16:24
Show Gist options
  • Save bali182/3f3cd855cd435e4add90a9f3e776be79 to your computer and use it in GitHub Desktop.
Save bali182/3f3cd855cd435e4add90a9f3e776be79 to your computer and use it in GitHub Desktop.
/// <reference path="react.d.ts"/>
declare module "react-responsive-grid" {
import {Component} from 'react'
import * as React from 'react'
interface ContainerProps {
children?: any
style?: Object
}
export class Container extends Component<ContainerProps, {}> {}
interface GridProps {
columns?: number
gutterRatio?: number
}
export class Grid extends Component<GridProps, {}> {}
interface SpanProps {
context?: Object
columns?: number
at?: number
pre?: number
post?: number
squish?: number
last?: boolean
break?: boolean
}
export class Span extends Component<SpanProps, {}> {}
interface BreakpointProps {
widthMethod: string
minWidth?: number
maxWidth?: number
}
export class Breakpoint extends Component<BreakpointProps, {}> {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment