This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
.-ml-px { | |
margin-left: -1px; | |
} | |
.child-siblings\:m-0 > * + * { | |
margin: 0; | |
} | |
.child-siblings\:m-1 > * + * { | |
margin: 0.25rem; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// どの環境で実行しても、JST時刻を取得する | |
const timeZoneOffset = 9 // JST | |
const getJstDate = () => { | |
const time = Date.now() // UTC millisecond | |
const date = new Date(time) // local date | |
const utcHours = date.getUTCHours() // UTC Hour | |
date.setHours(utcHours + timeZoneOffset) // UTC Hour + TimeZone Offset | |
return { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import withStyles, { WithStyles } from '@material-ui/core/styles/withStyles' | |
import TableCell from '@material-ui/core/TableCell' | |
import TableRow from '@material-ui/core/TableRow' | |
import * as React from 'react' | |
interface Props { | |
term: string | |
} | |
type ClassKey = 'term' | 'description' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'mui-datatables' { | |
interface CulumnOption { | |
display: boolean | |
filter: boolean | |
sort: boolean | |
customHeadRender: Function | |
customBodyRender: Function | |
} | |
interface ColumnProps { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'aws-api-gateway-client' { | |
import { AxiosResponse } from 'axios' | |
interface AwsApiGatewayClientConfig { | |
accessKey?: string | |
secretKey?: string | |
sessionToken?: string | |
region?: string | |
apiKey?: string | |
invokeUrl: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fork https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dnd | |
// Type definitions for React DnD | |
// Project: https://github.com/gaearon/react-dnd | |
// TypeScript Version: 2.3 | |
///<reference types="react" /> | |
declare namespace __ReactDnd { | |
// Decorated React Components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react' | |
import { debounce } from 'lodash' | |
interface Props { | |
childrenAsFunction: (width: number) => JSX.Element | |
} | |
interface State { | |
width: number | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference types="react" /> | |
declare module 'react-popover' { | |
type Falsey = false | null | undefined | |
type Place = 'above' | 'right' | 'below' | 'left' | 'row' | 'column' | 'start' | 'end' | |
export interface PopoverProps extends React.HTMLAttributes<any> { | |
body: React.ReactNode | React.ReactNode[] | |
enterExitTransitionDurationMs?: number | |
isOpen?: boolean | |
offset?: number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module "immutability-helper" { | |
type UpdateSpec<T> = { | |
[P in keyof T]?: UpdateSpec<T[P]> | UpdateSpecCommand<T[P]> | |
} | |
interface UpdateSpecCommand<S> { | |
$set?: S | |
// FIX ME. $pushm, $unshift, $spliceはSが配列の場合のみ使用できるようにしたい | |
$push?: S |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import flatten from 'lodash-es/flatten' | |
/** | |
* 配列のすべての組み合わせについて、関数を実行する。 | |
* @param fun 関数 | |
* @param cols 配列 | |
* @return {Array} | |
* @example | |
* combination((x,y)=>x*y, [1,2,3], [4,5,6]) | |
* => [4,5,6,8,10,12,12,15,18] |
NewerOlder