Skip to content

Commit e99ef55

Browse files
author
Mat Jones
committed
add missing properties
1 parent bbba201 commit e99ef55

3 files changed

Lines changed: 16 additions & 14 deletions

File tree

src/tests/factories/factory-type.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
const FactoryType = {
2+
ResultErrorRecord: "ResultErrorRecord",
3+
ResultRecord: "ResultRecord",
24
StubResourceRecord: "StubResourceRecord",
35
};
46

src/utilities/do-try.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class DoSync<TResourceType, TReturnVal = void> {
164164
public static try<TResourceType, TReturnVal = void>(
165165
workload: SyncWorkload<TReturnVal>
166166
) {
167-
return new DoSync(workload);
167+
return new DoSync<TResourceType, TReturnVal>(workload);
168168
}
169169
}
170170

src/utilities/polyfill-utils.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
*/
88
/* tslint:disable */
99
const registerPromiseFinallyPolyfill = () => {
10-
Promise.prototype.finally =
11-
Promise.prototype.finally ??
12-
function(callback: () => any) {
13-
// @ts-ignore
14-
return this.then(
15-
(value: any) => Promise.resolve(callback()).then(() => value),
16-
(reason: any) =>
17-
Promise.resolve(callback()).then(() => {
18-
throw reason;
19-
})
20-
);
21-
};
10+
Promise.prototype.finally =
11+
Promise.prototype.finally ??
12+
function(callback: () => any) {
13+
// @ts-ignore
14+
return this.then(
15+
(value: any) => Promise.resolve(callback()).then(() => value),
16+
(reason: any) =>
17+
Promise.resolve(callback()).then(() => {
18+
throw reason;
19+
})
20+
);
21+
};
2222
};
2323
/* tslint:enable */
2424

@@ -29,7 +29,7 @@ const registerPromiseFinallyPolyfill = () => {
2929
// -----------------------------------------------------------------------------------------
3030

3131
const PolyfillUtils = {
32-
registerPromiseFinallyPolyfill,
32+
registerPromiseFinallyPolyfill,
3333
};
3434

3535
export { PolyfillUtils };

0 commit comments

Comments
 (0)