Skip to content

Commit 5c899e6

Browse files
authored
Fix directives (#464)
1 parent a4c87bf commit 5c899e6

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

build/rollup.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default {
2222
'src/types/Locale.ts',
2323
'src/types/Theme.ts',
2424
'src/types/components.ts',
25+
'src/types/directives.ts',
2526
'src/types/index.ts',
2627
'src/locale/index.ts',
2728
'src/plugins/*.ts',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@soramitsu/soramitsu-js-ui",
3-
"version": "1.0.36",
3+
"version": "1.0.37",
44
"private": false,
55
"publishConfig": {
66
"registry": "https://nexus.iroha.tech/repository/npm-soramitsu/"

src/components/Input/SFloatInput/SFloatInput.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const decimalsValidator = x => x === undefined || x >= 0
4141
SInput
4242
},
4343
directives: {
44-
float: Float as any // TODO: fix type
44+
float: Float
4545
}
4646
})
4747
export default class SFloatInput extends Vue {

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ import {
5656
} from './components'
5757
import { Float, Integer, Button } from './directives'
5858
import { Components } from './types/components'
59-
import { Directives } from './types/directives'
6059
import { setTheme, setDesignSystem, setLocale } from './utils'
6160
import DesignSystem from './types/DesignSystem'
61+
import Directives from './types/directives'
6262
import Theme from './types/Theme'
6363
import Locale from './types/Locale'
6464
import { SoramitsuUIStorePlugin, ElementUIPlugin } from './plugins'

src/types/directives.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
export enum Directives {
1+
enum Directives {
22
Float = 'Float',
33
Integer = 'Integer',
44
Button = 'Button'
55
}
6+
7+
export default Directives

0 commit comments

Comments
 (0)