Skip to content

Commit

Permalink
Fixing typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Jun 5, 2021
1 parent 20f84a6 commit b2c2914
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/lib/device-connector/DeviceConnector.ts
Expand Up @@ -98,7 +98,7 @@ export default class DeviceConnector extends Model implements DeviceConnectorInt
})
}

static async add(device: DeviceInterface, connector: ConnectorInterface, data: DeviceConnectorCreateInterface, id?: string, draft = true): Promise<Item<DeviceConnector>> {
static async add(device: DeviceInterface, connector: ConnectorInterface, data: DeviceConnectorCreateInterface, id?: string | null, draft = true): Promise<Item<DeviceConnector>> {
return await DeviceConnector.dispatch('add', {
id,
draft,
Expand Down
2 changes: 1 addition & 1 deletion public/lib/devices/Device.ts
Expand Up @@ -175,7 +175,7 @@ export default class Device extends Model implements DeviceInterface {
})
}

static async add(data: DeviceCreateInterface, id?: string, draft = true): Promise<Item<Device>> {
static async add(data: DeviceCreateInterface, id?: string | null, draft = true): Promise<Item<Device>> {
return await Device.dispatch('add', {
id,
draft,
Expand Down
1 change: 1 addition & 0 deletions public/types/devices-module.ts
Expand Up @@ -21,6 +21,7 @@ declare module '@vuex-orm/core' {
}

// Re-export models types
export * from '@/lib/types'
export * from '@/lib/channel-configuration/types'
export * from '@/lib/channel-properties/types'
export * from '@/lib/channels/types'
Expand Down

0 comments on commit b2c2914

Please sign in to comment.