Skip to content

Commit

Permalink
refactor: add flow comment to the top of decl files (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharygolba authored Jul 10, 2016
1 parent fc325ea commit 9c7e24a
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions decl/ansi-regex.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
declare module 'ansi-regex' {
declare function ansiregex(): RegExp;
declare var exports: ansiregex;
Expand Down
1 change: 1 addition & 0 deletions decl/bluebird.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
declare module 'bluebird' {
declare var exports: typeof Promise;
}
1 change: 1 addition & 0 deletions decl/chalk.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
declare module 'chalk' {
declare function cyan(source: string): string;
declare function dim(source: string): string;
Expand Down
1 change: 1 addition & 0 deletions decl/cluster.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
import { EventEmitter } from 'events';

declare module 'cluster' {
Expand Down
1 change: 1 addition & 0 deletions decl/events.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
declare module 'events' {
declare class EventEmitter {
static listenerCount(emitter: EventEmitter, event: string): number;
Expand Down
1 change: 1 addition & 0 deletions decl/http.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
import {
Server as http$Server,
IncomingMessage as http$IncomingMessage,
Expand Down
1 change: 1 addition & 0 deletions decl/inflection.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
declare module 'inflection' {
declare function camelize(source: string, lower: boolean): string;
declare function classify(source: string): string;
Expand Down
1 change: 1 addition & 0 deletions decl/misc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
import type { Model } from '../src/packages/database';
import type Controller from '../src/packages/controller';
import type Serializer from '../src/packages/serializer';
Expand Down
1 change: 1 addition & 0 deletions decl/moment.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
declare module 'moment' {
declare class Moment {
format(format: string): string;
Expand Down
1 change: 1 addition & 0 deletions decl/rollup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
type rollupOptions = {
entry: string;
onwarn?: Function;
Expand Down
1 change: 1 addition & 0 deletions decl/watchman.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @flow
declare module 'fb-watchman' {
declare class Client {
on(event: string, listener: Function): Client;
Expand Down

0 comments on commit 9c7e24a

Please sign in to comment.