feat(createTypographyControl): add generic for identficator
This commit is contained in:
1 parent
46a3c3e8fc
commit
597ff7ec90
2 files changed
+9
-7
No files matched your search
@@ -19,7 +19,9 @@ import {
|
||||
MIN_LINE_HEIGHT,
|
||||
} from '../const/const';
|
||||
|
||||
const controlData: ControlModel[] = [
|
||||
export type ControlId = 'font_size' | 'font_weight' | 'line_height' | 'letter_spacing';
|
||||
|
||||
const controlData: ControlModel<ControlId>[] = [
|
||||
{
|
||||
id: 'font_size',
|
||||
value: DEFAULT_FONT_SIZE,
|
||||
|
||||
Reference in new issue
Block a user