chore: add more prop annotations

This commit is contained in:
Eric Liu 2020-07-25 06:26:49 -07:00
commit 773b18d314
75 changed files with 877 additions and 137 deletions

View file

@ -1,6 +1,11 @@
<script>
export let scope = "col";
export let translateWithId = () => "";
/**
* Set an id for the top-level element
* @type {string} [id]
*/
export let id = "ccs-" + Math.random().toString(36);
import { getContext } from "svelte";
@ -20,6 +25,7 @@
<th
aria-sort={active ? $sortHeader.sortDirection : 'none'}
{scope}
{id}
{...$$restProps}
on:mouseover
on:mouseenter
@ -41,6 +47,7 @@
{:else}
<th
{scope}
{id}
{...$$restProps}
on:click
on:mouseover