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,11 +3,11 @@
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { EventRecord, Hash, SignedBlock } from '@polkadot/types/interfaces';
|
||||
import type { DeriveApi } from '../types';
|
||||
import type { DeriveApi } from '../types.js';
|
||||
|
||||
import { combineLatest, map, switchMap } from 'rxjs';
|
||||
|
||||
import { memo } from '../util';
|
||||
import { memo } from '../util/index.js';
|
||||
|
||||
interface Result {
|
||||
block: SignedBlock;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './events';
|
||||
export * from './signingInfo';
|
||||
export * from './events.js';
|
||||
export * from './signingInfo.js';
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { Header, Index } from '@polkadot/types/interfaces';
|
||||
import type { AnyNumber, Codec, IExtrinsicEra } from '@polkadot/types/types';
|
||||
import type { DeriveApi } from '../types';
|
||||
import type { DeriveApi } from '../types.js';
|
||||
|
||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||
|
||||
import { isNumber, isUndefined } from '@polkadot/util';
|
||||
|
||||
import { unwrapBlockNumber } from '../util';
|
||||
import { FALLBACK_MAX_HASH_COUNT, FALLBACK_PERIOD, MAX_FINALITY_LAG, MORTAL_PERIOD } from './constants';
|
||||
import { unwrapBlockNumber } from '../util/index.js';
|
||||
import { FALLBACK_MAX_HASH_COUNT, FALLBACK_PERIOD, MAX_FINALITY_LAG, MORTAL_PERIOD } from './constants.js';
|
||||
|
||||
interface Result {
|
||||
header: Header | null;
|
||||
|
||||
Reference in New Issue
Block a user