Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bertrandk on github.
  • I am bertrand (https://keybase.io/bertrand) on keybase.
  • I have a public key whose fingerprint is D3BA 1F48 23BE 1C87 4029 EEF7 5D35 F52C 06D7 FB0D

To claim this, I am signing this object:

@bertrandk
bertrandk / react-virtualized.d.ts
Last active April 19, 2020 12:53
Typescript React Virtualized
/// <reference path="../react/react.d.ts" />
declare namespace ReactVirtualized {
import React = __React
interface CellGroupRendererConfig {
cellSizeAndPositionGetter: Function;
indices: Array<number>;
cellRenderer: Function;
}
@bertrandk
bertrandk / array-includes.d.ts
Last active April 22, 2016 15:01
Typescript Array Includes
declare module "array-includes" {
interface Includes {
includes(arr: Array<any>, searchElement: any, fromIndex?: number): boolean;
}
export = Includes;
}
@bertrandk
bertrandk / react-select.d.ts
Last active March 3, 2016 04:36
Typescript React Select
/// <reference path="../react/react.d.ts" />
declare namespace ReactSelect {
import React = __React;
interface Option {
label: string;
value: string;
}
@bertrandk
bertrandk / react-geosuggest.d.ts
Last active March 1, 2016 18:09
Typescript React Geosuggest
/// <reference path="../react/react.d.ts" />
declare namespace Geosuggest {
import React = __React
class LatLng {
constructor(lat: number, lng: number, noWrap?: boolean);
equals(other: LatLng): boolean;
lat(): number;
lng(): number;
@bertrandk
bertrandk / voucher-code-generator.d.ts
Last active September 3, 2023 13:23
Typescript Voucher Code Generator
interface VoucherCodeConfig {
length?: number;
count?: number;
charset?: string;
prefix?: string;
postfix?: string;
pattern?: string;
}
interface VoucherCodeGenerator {
@bertrandk
bertrandk / phoneformat.js.d.ts
Last active February 19, 2016 08:26
Typescript Phoneformat.js
interface PhoneFormat {
countryForE164Number(phoneNumber: string): string;
formatNumberForMobileDialing(countryCode: string, phoneNumber: string): string;
isValidNumber(phoneNumber: string, countryCode: string): boolean;
formatE164(countryCode: string, phoneNumber: string): string;
formatInternational(countryCode: string, phoneNumber: string): string;
formatLocal(countryCode: string, phoneNumber: string): string;
exampleLandlineNumber(countryCode: string): string;
exampleMobileNumber(countryCode: string): string;
cleanPhone(phoneNumber: string): string;
@bertrandk
bertrandk / radium.d.ts
Created February 10, 2016 04:19
Typescript Radium
/// <reference path="../react/react.d.ts" />
declare var Radium: _Radium.RadiumStatic;
declare namespace _Radium {
import React = __React;
interface CssClass {
[name: string]: React.CSSProperties;
}