Makes a generic document row
This commit is contained in:
@@ -33,6 +33,10 @@ export type Session = Document &
|
||||
}
|
||||
>;
|
||||
|
||||
export function isSession(doc: Document): doc is Session {
|
||||
return Object.hasOwn(doc.data, "session");
|
||||
}
|
||||
|
||||
export type ISO8601Date = string & { __type: "iso8601date" };
|
||||
|
||||
export type Secret = Document &
|
||||
@@ -44,6 +48,10 @@ export type Secret = Document &
|
||||
}
|
||||
>;
|
||||
|
||||
export function isSecret(doc: Document): doc is Secret {
|
||||
return Object.hasOwn(doc.data, "secret");
|
||||
}
|
||||
|
||||
export const RelationshipType = {
|
||||
Secrets: "secrets",
|
||||
DiscoveredIn: "discoveredIn",
|
||||
|
||||
Reference in New Issue
Block a user