Commit d1f4ed18 authored by Artem Sakhatskiy's avatar Artem Sakhatskiy
Browse files

readme spellcheck, pipeline issue

parent 098f75c1
Pipeline #3636639 passed with stages
in 3 minutes and 46 seconds
......@@ -23,4 +23,5 @@ build:
test:
stage: test
script:
- npm install
- npm test
......@@ -8,23 +8,20 @@ A wrapper over function containing property expression.
`Expression<TType, TResult>` is an interface that extends `Function`. Module `Expression` contains following methods:
```typescript
module Expression
{
/*
* Throws errors if given function is not a valid property expression.
*/
export const validate<TType, TResult>(exp: Expression<TType, TResult>) : void
/*
* Validates given function and applies it to `target`.
*/
export const apply<TType, TResult>(exp: Expression<TType, TResult>, target: TType) : TResult
/*
* Validates given function and gets property name. Useful for immutable.js.
*/
export const getProperty<TType, TResult>(exp: Expression<TType, TResult>) : string
}
/*
* Throws errors if given function is not a valid property expression.
*/
validate<TType, TResult>(exp: Expression<TType, TResult>) : void
/*
* Validates given function and applies it to `target`.
*/
apply<TType, TResult>(exp: Expression<TType, TResult>, target: TType) : TResult
/*
* Validates given function and gets property name. Useful for immutable.js.
*/
getProperty<TType, TResult>(exp: Expression<TType, TResult>) : string
```
Usage
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment