mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-22 09:01:45 +03:00
Fix janky generics
This commit is contained in:
parent
c4686bbf63
commit
d76d900a7e
@ -1,8 +1,3 @@
|
||||
<script lang="ts" module>
|
||||
// If this is not present, eslint complains that T is not defined below
|
||||
type T = unknown;
|
||||
</script>
|
||||
|
||||
<script lang="ts" generics="T">
|
||||
/**
|
||||
* Lazily renders a list of many many items. This is intended to be used
|
||||
|
@ -49,7 +49,10 @@ export default tsEslint.config(
|
||||
parser: svelteParser,
|
||||
parserOptions: {
|
||||
parser: tsParser,
|
||||
extraFileExtensions: ['.svelte']
|
||||
extraFileExtensions: ['.svelte'],
|
||||
svelteFeatures: {
|
||||
experimentalGenerics: true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user