Interface SupportedEntryType<T>

The supported entry types.

Each supported entry type has a check function to determine if the entry is of that type and a create function to create a reader from the entry.

interface SupportedEntryType<T> {
    check: ((type: EntryType) => type is T);
    create: ((entry: T) => ReaderType<T>);
    type: string;
}

Type Parameters

Properties

Properties

check: ((type: EntryType) => type is T)

Check if the entry is of the supported type.

create: ((entry: T) => ReaderType<T>)

Create a reader from the entry.

type: string

The type of the entry.