mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
npm: update metadata types
This commit is contained in:
parent
7f433ae807
commit
8ae3e56b92
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
pkg/arvo/app/landscape/js/bundle/serviceworker.js
Normal file
2
pkg/arvo/app/landscape/js/bundle/serviceworker.js
Normal file
File diff suppressed because one or more lines are too long
1
pkg/arvo/app/landscape/js/bundle/serviceworker.js.map
Normal file
1
pkg/arvo/app/landscape/js/bundle/serviceworker.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -1,4 +1,5 @@
|
||||
import { AppName, Path, Patp } from "../lib";
|
||||
import {Resource} from "../groups";
|
||||
|
||||
export type MetadataUpdate =
|
||||
MetadataUpdateInitial
|
||||
@ -67,10 +68,21 @@ export interface Metadata {
|
||||
'date-created': string;
|
||||
description: string;
|
||||
title: string;
|
||||
module: string;
|
||||
config: MetadataConfig;
|
||||
hidden: boolean;
|
||||
picture: string;
|
||||
preview: boolean;
|
||||
vip: PermVariation;
|
||||
}
|
||||
|
||||
export type MetadataConfig = GraphConfig | GroupConfig;
|
||||
|
||||
export interface GraphConfig {
|
||||
graph: string;
|
||||
}
|
||||
|
||||
export interface GroupConfig {
|
||||
group: undefined | {} | Resource;
|
||||
}
|
||||
|
||||
export type PermVariation = '' | 'reader-comments' | 'member-metadata' | 'host-feed' | 'admin-feed';
|
||||
|
Loading…
Reference in New Issue
Block a user