You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
656 B
20 lines
656 B
// ids.ts
|
|
import type {AttrID, ObjectID, OptionID, RuleID, SectionID, HotspotID, ViewID} from "../types/all.ts";
|
|
|
|
|
|
|
|
// ============================================================================
|
|
// EXPORTS
|
|
// ============================================================================
|
|
|
|
export const IDS = {
|
|
attr : (id: string): AttrID => `at:${id}`,
|
|
opt : (id: string): OptionID => `op:${id}`,
|
|
sec : (id: string): SectionID=> `sc:${id}`,
|
|
obj : (id: string): ObjectID => `ob:${id}`,
|
|
rule : (id: string): RuleID => `rl:${id}`,
|
|
view : (id: string): ViewID => `vw:${id}`,
|
|
hspot: (id: string): HotspotID=> `hs:${id}`,
|
|
};
|
|
|