MCPcopy Create free account
hub / github.com/bytebase/bytebase / nullEnvironment

Function nullEnvironment

frontend/src/types/v1/environment.ts:30–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28};
29
30export const nullEnvironment = (): Environment => {
31 return {
32 ...create(EnvironmentSetting_EnvironmentSchema, {
33 name: NULL_ENVIRONMENT_NAME,
34 id: "-",
35 title: "No Environment",
36 tags: {},
37 }),
38 color: "",
39 order: -1,
40 };
41};
42
43export const isValidEnvironmentName = (name: unknown): name is string => {
44 return (

Callers 2

DatabaseTableViewFunction · 0.90
useEnvironmentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected