Skip to content

Commit 91314fd

Browse files
suramamsuramam
authored andcommitted
Bug fixes
2 parents 9f28497 + dc0829b commit 91314fd

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

misc/SharePointReferenceToc.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Item text="BasicHttpClient class" url="spfx/sp-client-base/basichttpclient" SEODescription=""/>
66
<Item text="Compare class" url="spfx/sp-client-base/compare" SEODescription=""/>
77
</Item>
8-
<Item text="sp-client-preview" url="spfx/sp-client-preview" SEODescription="">
8+
<Item text="sp-client-preview module" url="spfx/sp-client-preview" SEODescription="">
99
<Item text="BaseClientSideWebPart class" url="spfx/sp-client-preview/baseclientsidewebpart" SEODescription=""/>
1010
<Item text="MockWebPartContext class" url="spfx/sp-client-preview/mockwebpartcontext" SEODescription=""/>
1111
</Item>

reference/spfx/es6-collections/weakmap.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,3 @@ None
110110
|:-------------|:---------------|:------------|
111111
| `key` | `K` | |
112112
| `value` | `V` | _Optional._ |
113-

reference/spfx/es6-promise/promise.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ _Type parameters: `<R>`_
88

99

1010
## Constructor
11-
If you call resolve in the body of the callback passed to the constructor,
12-
your promise is fulfilled with result object passed to resolve.
13-
If you call reject your promise is rejected with the object passed to resolve.
14-
For consistency and debugging (eg stack traces), obj should be an instanceof Error.
11+
If you call resolve in the body of the callback passed to the constructor,
12+
your promise is fulfilled with result object passed to resolve.
13+
If you call reject your promise is rejected with the object passed to resolve.
14+
For consistency and debugging (eg stack traces), obj should be an instanceof Error.
1515
Any errors thrown in the constructor callback will be implicitly passed to reject().
1616

1717
**Signature:** `constructor(callback: (resolve: (value?: R | Thenable<R>) => void,reject: (error?: any) => void) => void)`
@@ -46,11 +46,11 @@ Any errors thrown in the constructor callback will be implicitly passed to rejec
4646

4747
### then<U>
4848

49-
onFulfilled is called when/if "promise" resolves. onRejected is called when/if "promise" rejects.
50-
Both are optional, if either/both are omitted the next onFulfilled/onRejected in the chain is called.
51-
Both callbacks have a single parameter , the fulfillment value or rejection reason.
52-
"then" returns a new promise equivalent to the value you return from onFulfilled/onRejected after being passed through Promise.resolve.
53-
If an error is thrown in the callback, the returned promise rejects with that error.
49+
onFulfilled is called when/if "promise" resolves. onRejected is called when/if "promise" rejects.
50+
Both are optional, if either/both are omitted the next onFulfilled/onRejected in the chain is called.
51+
Both callbacks have a single parameter , the fulfillment value or rejection reason.
52+
"then" returns a new promise equivalent to the value you return from onFulfilled/onRejected after being passed through Promise.resolve.
53+
If an error is thrown in the callback, the returned promise rejects with that error.
5454

5555

5656
**Signature:** ``then<U>(onFulfilled?: (value: R) => U | Thenable<U>,onRejected?: (error: any) => U | Thenable<U>): Promise<U>``
@@ -89,7 +89,7 @@ If an error is thrown in the callback, the returned promise rejects with that er
8989

9090
### catch<U>
9191

92-
Sugar for promise.then(undefined,onRejected)
92+
Sugar for promise.then(undefined,onRejected)
9393

9494

9595
**Signature:** ``catch<U>(onRejected?: (error: any) => U | Thenable<U>): Promise<U>``
@@ -104,4 +104,3 @@ Sugar for promise.then(undefined,onRejected)
104104
| Parameter | Type | Description |
105105
|:-------------|:---------------|:------------|
106106
| `onRejected` | `(error: any) => U `,[` Thenable<U>`](../es6-promise/thenable.md) | _Optional._called when/if "promise" rejects |
107-

0 commit comments

Comments
 (0)