Closed MichaHuhn closed 5 months ago
Such ref types:
let availableIcons: Ref<FontAwesomeIconType[]> = ref([])
can be simplified like this:
let availableIcons = ref<FontAwesomeIconType[]>([])
If a ref() has an initial value, the type is inferred automagically.
ref()
const currentHue: Ref<Number> = ref(color.hsl()[0])
Ref<Number> is usually omitted like this:
Ref<Number>
Such ref types:
can be simplified like this:
If a
ref()
has an initial value, the type is inferred automagically.Ref<Number>
is usually omitted like this: