Skip to content
Snippets Groups Projects
Commit ad0472d7 authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Fix TypeScript errors when using the truncateMixin

parent 12945c87
No related branches found
No related tags found
1 merge request!1612Fix TypeScript errors when using the truncateMixin
import { defineComponent } from 'vue'
import { TRUNCATE_LENGTHS } from './config'
import { ensureArray } from './helpers'
......@@ -6,7 +7,7 @@ const truncateFilter = maxLength => text => {
return text ?? ''
}
export const truncateMixin = {
export const truncateMixin = defineComponent({
methods: {
truncateSelect: truncateFilter(TRUNCATE_LENGTHS.select),
truncateLong: truncateFilter(TRUNCATE_LENGTHS.long),
......@@ -14,7 +15,7 @@ export const truncateMixin = {
truncateNotification: truncateFilter(TRUNCATE_LENGTHS.notification),
truncateId: truncateFilter(TRUNCATE_LENGTHS.id)
}
}
})
const corporaFilters = {
// From a corpus, returns true if the corpus is readable.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment