move Tamagui augmentation to config file

This commit is contained in:
Pavel Prichodko 2023-01-18 16:39:50 +01:00
parent 39b6a5371f
commit 7b0ab3dad0
No known key found for this signature in database
GPG Key ID: 8E4C82D464215E83
2 changed files with 7 additions and 11 deletions

View File

@ -1,11 +0,0 @@
// eslint-disable-next-line eslint-comments/disable-enable-pair
/* eslint-disable @typescript-eslint/no-empty-interface */
import { config } from './tamagui.config'
export type Conf = typeof config
declare module '@tamagui/core' {
interface TamaguiCustomConfig extends Conf {}
}
export default config

View File

@ -7,6 +7,13 @@ import { animations } from './animations'
import { themes } from './themes'
import { tokens } from './tokens'
export type Conf = typeof config
declare module '@tamagui/core' {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface TamaguiCustomConfig extends Conf {}
}
const interFont = createInterFont({
size: {
6: 11,