Skip to content

Commit

Permalink
docs: update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
continuous-deployment committed Nov 30, 2016
1 parent 915a284 commit 9c28438
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions README.md
Expand Up @@ -2539,6 +2539,31 @@ type TArrayPredicate = (el: T, i?: number) => boolean
// Options: ["never"]
type TArrayPredicate = (el:T, i?:number) => boolean
type X = (number) => string;
type X = (?number) => string;
type X = number => string;
type X = ?number => string;
type X = ({ foo: bar }) => string;
// Options: ["always"]
type X = (number) => string;
// Options: ["always"]
type X = (?number) => string;
// Options: ["always"]
type X = number => string;
// Options: ["always"]
type X = ?number => string;
// Options: ["always"]
type X = ({ foo: bar }) => string;
class Foo { bar }
class Foo { bar = 3 }
Expand Down Expand Up @@ -2637,6 +2662,12 @@ type X = { +[a: b]: c }
// Options: ["never"]
type X = { +[a:b]:c }
// Options: ["always"]
type X = { [string]: c }
// Options: ["never"]
type X = { [string]:c }
// Options: ["never"]
const x = ({}:{})
Expand Down Expand Up @@ -3122,6 +3153,31 @@ type X = (foo? : string) => number
// Options: ["always"]
type X = (foo? : ?string) => number
type X = (number) => string;
type X = (?number) => string;
type X = number => string;
type X = ?number => string;
type X = ({ foo: bar }) => string;
// Options: ["always"]
type X = (number) => string;
// Options: ["always"]
type X = (?number) => string;
// Options: ["always"]
type X = number => string;
// Options: ["always"]
type X = ?number => string;
// Options: ["always"]
type X = ({ foo : bar }) => string;
class Foo { bar }
class Foo { bar = 3 }
Expand Down Expand Up @@ -3193,6 +3249,12 @@ type X = { [a : b] : c }
// Options: ["never"]
type X = { [a:b]:c }
// Options: ["always"]
type X = { [string] : c }
// Options: ["never"]
type X = { [string]:c }
// Options: ["always"]
type X = { +[a : b] : c }
Expand Down

0 comments on commit 9c28438

Please sign in to comment.