Skip to content

Commit

Permalink
re-added @types/swell-js
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-gx committed Dec 19, 2022
1 parent da7e2d4 commit 138bde7
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 610 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuxt-swell",
"version": "0.1.5",
"version": "0.1.6",
"license": "MIT",
"type": "module",
"repository": {
Expand Down Expand Up @@ -37,6 +37,7 @@
"@nuxt/module-builder": "^0.2.1",
"@nuxt/schema": "^3.0.0",
"@nuxtjs/eslint-config-typescript": "^11.0.0",
"@types/swell-js": "^3.18.0",
"eslint": "^8.26.0",
"nuxt": "^3.0.0"
}
Expand Down
4 changes: 1 addition & 3 deletions src/module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { resolve } from 'path'
import { fileURLToPath } from 'url'
import { defineNuxtModule, addPlugin, addImportsDir, extendViteConfig } from '@nuxt/kit'
import { InitOptions } from './types/swell-js/index'
export * from './types/swell'
export * from './types/swell-js'
import { InitOptions } from 'swell-js'

export interface ModuleOptions {
storeId?: string,
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/composables/useSwellCategories.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from '#app'
import { computed, ComputedRef } from 'vue'
import { Category } from '../../types/swell-js'
import { Category } from 'swell-js'
import useSwell from './useSwell'

export type UseCategoriesReturnType = {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/composables/useSwellProduct.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from '#app'
import { computed, ComputedRef } from 'vue'
import { Product, Query } from '../../types/swell-js'
import { Product, Query } from 'swell-js'
import useSwell from './useSwell'

export type UseProductReturnType = {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/composables/useSwellProducts.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from '#app'
import type { ComputedRef } from 'vue'
import { computed } from 'vue'
import { ListResult, Product, Query, SearchQuery } from '../../types/swell-js'
import { ListResult, Product, Query, SearchQuery } from 'swell-js'
import useSwell from './useSwell'

export type UseProductsReturnType = {
Expand Down
Loading

0 comments on commit 138bde7

Please sign in to comment.