Skip to content

Commit 9c500fb

Browse files
committed
foxes
1 parent 36214e6 commit 9c500fb

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

packages/example/src/past/v2/Bug.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const timeout = createSource(
3333
});
3434

3535

36-
// @ts-ignore
3736
function usersProducer(props) {
3837
const controller = new AbortController();
3938
const {signal} = controller;
@@ -45,7 +44,6 @@ function usersProducer(props) {
4544
}
4645

4746

48-
// @ts-ignore
4947
function producer(props) {
5048
return new Promise(res => {
5149
let id = setTimeout(() => res("12"), 2000);

packages/react-async-states/src/async-state/AsyncStateManager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export function AsyncStateManager(
7777
Object
7878
.values(initialStates ?? EMPTY_OBJECT)
7979
.reduce((result, current) => {
80-
// @ts-ignore
8180
result[current.key] = current;
8281
return result;
8382
}, Object.create(null)) as Record<string, ExtendedInitialAsyncState<any>>;

packages/react-async-states/src/react/useAsyncStateBase.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -951,8 +951,7 @@ function readStateFromAsyncState<T, E = State<T>>(
951951
//endregion
952952

953953
//region useAsyncState value construction
954-
// @ts-ignore
955-
function noop(): undefined {
954+
function noop(): void {
956955
// that's a noop fn
957956
}
958957

packages/shared/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ export function cloneProducerProps<T>(props: ProducerProps<T>): ProducerSavedPro
2727

2828
if (props.lastSuccess !== undefined) {
2929
output.lastSuccess = shallowClone(props.lastSuccess);
30-
// @ts-ignore
31-
// todo: whaaat
32-
delete output.lastSuccess.props;
30+
delete output.lastSuccess!.props;
3331
}
3432

3533
output.payload = shallowClone(props.payload);

0 commit comments

Comments
 (0)