Commit de7af6da authored by Alejandro Celaya's avatar Alejandro Celaya Committed by Alejandro Celaya

Ignore unused line from code coverage

parent cfceaf49
...@@ -61,7 +61,10 @@ export function toString(value: any): string { ...@@ -61,7 +61,10 @@ export function toString(value: any): string {
* This is mainly useful to cast a generic `Ref<HTMLElement>` to a more specific * This is mainly useful to cast a generic `Ref<HTMLElement>` to a more specific
* element type (eg. `Ref<HTMLDivElement>`) for use with the `ref` prop of a JSX element. * element type (eg. `Ref<HTMLDivElement>`) for use with the `ref` prop of a JSX element.
* Since Preact only writes to the `ref` prop, such a cast is safe. * Since Preact only writes to the `ref` prop, such a cast is safe.
*
* @fixme Ignoring from code coverage, as this function is currently not used
*/ */
/* istanbul ignore next */
export function downcastRef<T, U>(ref: Ref<T> | undefined): Ref<U> | undefined { export function downcastRef<T, U>(ref: Ref<T> | undefined): Ref<U> | undefined {
return ref as Ref<U> | undefined; return ref as Ref<U> | undefined;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment