Skip to content

Commit

Permalink
Update tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Aug 19, 2024
1 parent b794e90 commit f1b89af
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/bluwy/svelte-preprocess-import-assets.git"
"url": "git+https://github.com/bluwy/svelte-preprocess-import-assets.git"
},
"bugs": {
"url": "https://github.com/bluwy/svelte-preprocess-import-assets/issues"
Expand Down
2 changes: 1 addition & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const ALLOWED_META_PROPERTY = [
'vk:image',
]

/** @type {import('.').AssetSource[]} */
/** @type {import('./index.d.ts').AssetSource[]} */
export const DEFAULT_SOURCES = [
{
tag: 'audio',
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
IGNORE_FLAG,
} from './constants.js'

/** @type {import('.').importAssets} */
/** @type {import('./index.d.ts').importAssets} */
export function importAssets(options = {}) {
let {
sources = DEFAULT_SOURCES,
Expand All @@ -16,7 +16,7 @@ export function importAssets(options = {}) {
urlFilter,
} = options

/** @type {import('.').AssetSource[]} */
/** @type {import('./index.d.ts').AssetSource[]} */
let resolvedSources

let hasCustomSources = false
Expand Down Expand Up @@ -108,7 +108,7 @@ export function importAssets(options = {}) {
}

for (let i = 0; i < resolvedSources.length; i++) {
/** @type {import('.').AssetSource} */
/** @type {import('./index.d.ts').AssetSource} */
const source = resolvedSources[i]

// Compare node tag match
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowJs": true,
"checkJs": true,
"module": "ESNext",
"moduleResolution": "node",
"module": "Node16",
"moduleResolution": "Node16",
"noEmit": true,
"skipLibCheck": true,
"strict": true,
Expand Down

0 comments on commit f1b89af

Please sign in to comment.