Skip to content

Commit be7f64b

Browse files
committed
get(): remove StoreData as allowed parameter type
1 parent 86c80a3 commit be7f64b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function HalJsonVuex (store: Store<Record<string, State>>, axios: AxiosInstance,
105105
* dummy is returned, which will be replaced with the true data through Vue's reactivity
106106
* system as soon as the API request finishes.
107107
*/
108-
function get (uriOrEntity: string | ResourceInterface | StoreData = ''): ResourceInterface {
108+
function get (uriOrEntity: string | ResourceInterface): ResourceInterface {
109109
const uri = normalizeEntityUri(uriOrEntity, axios.defaults.baseURL)
110110

111111
if (uri === null) {

src/interfaces/ApiActions.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import ResourceInterface from './ResourceInterface'
2-
import StoreData from './StoreData'
32

43
interface ApiActions {
5-
get: (uriOrEntity: string | ResourceInterface | StoreData) => ResourceInterface
4+
get: (uriOrEntity: string | ResourceInterface) => ResourceInterface
65
reload: (uriOrEntity: string | ResourceInterface) => Promise<ResourceInterface>
76
post: (uriOrEntity: string | ResourceInterface, data: unknown) => Promise<ResourceInterface | null>
87
patch: (uriOrEntity: string | ResourceInterface, data: unknown) => Promise<ResourceInterface>

0 commit comments

Comments
 (0)