update to 1.1.0 #1
|
@ -1,3 +1,3 @@
|
|||
/// <reference path="flaschengeist.d.ts" />
|
||||
|
||||
export * from "./plugin"
|
||||
export * from './plugin';
|
||||
|
|
|
@ -2,16 +2,18 @@ import type { RouteLocationRaw, RouteRecordRaw, RouteRecordName } from 'vue-rout
|
|||
import type { Component } from '@vue/runtime-core';
|
||||
|
||||
/* This is some sort of PEP440 subset */
|
||||
type Join<T extends unknown[], D extends string> =
|
||||
T extends [] ? '' :
|
||||
T extends [string | number | boolean | bigint] ? `${T[0]}` :
|
||||
T extends [string | number | boolean | bigint, ...infer U] ? `${T[0]}${D}${Join<U, D>}` :
|
||||
string;
|
||||
type BaseVersion = Join<[number, number], '.'> | Join<[number, number, number], '.'>
|
||||
type PreRelease = Join<[["a"|"b"|"rc"], number], ".">
|
||||
type PRVersion = BaseVersion | `${BaseVersion}${PreRelease}`
|
||||
type Join<T extends unknown[], D extends string> = T extends []
|
||||
? ''
|
||||
: T extends [string | number | boolean | bigint]
|
||||
? `${T[0]}`
|
||||
: T extends [string | number | boolean | bigint, ...infer U]
|
||||
? `${T[0]}${D}${Join<U, D>}`
|
||||
: string;
|
||||
type BaseVersion = Join<[number, number], '.'> | Join<[number, number, number], '.'>;
|
||||
type PreRelease = Join<[['a' | 'b' | 'rc'], number], '.'>;
|
||||
type PRVersion = BaseVersion | `${BaseVersion}${PreRelease}`;
|
||||
/** A PEP440 subset used to describe backend module versions */
|
||||
export type PEP440Version = PRVersion | `${PRVersion}.dev${number}`
|
||||
export type PEP440Version = PRVersion | `${PRVersion}.dev${number}`;
|
||||
|
||||
export namespace FG_Plugin {
|
||||
/**
|
||||
|
@ -19,7 +21,7 @@ export namespace FG_Plugin {
|
|||
*/
|
||||
export interface Plugin {
|
||||
/** Unique identifier for this plugin, we recommend using a FQN like com.example.my_plugin */
|
||||
id: string,
|
||||
id: string;
|
||||
/** Arbitrary name of the plugin used inside admin view etc */
|
||||
name: string;
|
||||
/** Version of this plugin, used for dependencies. MUST be semver parsable */
|
||||
|
|
Loading…
Reference in New Issue