Use .js imports in src (#5526)
* Use .js imports in src * Adjust * Fix imports * Bump dev * Adjust with .js imports for typegen * Adjust * Adjust * Remove target override
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { EraIndex } from '@polkadot/types/interfaces';
|
||||
import type { DeriveApi } from '../types';
|
||||
import type { DeriveEraValidatorExposure, DeriveStakerExposure } from './types';
|
||||
import type { DeriveApi } from '../types.js';
|
||||
import type { DeriveEraValidatorExposure, DeriveStakerExposure } from './types.js';
|
||||
|
||||
import { map, switchMap } from 'rxjs';
|
||||
|
||||
import { firstMemo, memo } from '../util';
|
||||
import { firstMemo, memo } from '../util/index.js';
|
||||
|
||||
export function _stakerExposures (instanceId: string, api: DeriveApi): (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive?: boolean) => Observable<DeriveStakerExposure[][]> {
|
||||
return memo(instanceId, (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive = false): Observable<DeriveStakerExposure[][]> => {
|
||||
|
||||
Reference in New Issue
Block a user