mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files
This commit updates the symbol type from 'Symbol' to 'symbol' in the ColumnAccessControl files. The use of 'symbol' aligns with the TypeScript convention for symbol types. This change improves code consistency and readability.
This commit is contained in:
parent
ddbfbac802
commit
8ce432256c
@ -1,5 +1,5 @@
|
||||
// This is basicaly meant to get a cookie by name
|
||||
var getCookiebyName = function (name) {
|
||||
var pair = document.cookie.match(new RegExp(name + '=([^;]+)'));
|
||||
return !!pair ? pair[1] : null;
|
||||
return pair ? pair[1] : null;
|
||||
};
|
@ -4,7 +4,7 @@ import Dictionary from '../../Dictionary';
|
||||
import { ReflectionMetadataType } from '../../Reflection';
|
||||
import 'reflect-metadata';
|
||||
|
||||
const accessControlSymbol: Symbol = Symbol('ColumnAccessControl');
|
||||
const accessControlSymbol: symbol = Symbol('ColumnAccessControl');
|
||||
|
||||
export default (accessControl: ColumnAccessControl): ReflectionMetadataType => {
|
||||
return Reflect.metadata(accessControlSymbol, accessControl);
|
||||
|
@ -4,7 +4,7 @@ import Dictionary from '../../Dictionary';
|
||||
import { ReflectionMetadataType } from '../../Reflection';
|
||||
import 'reflect-metadata';
|
||||
|
||||
const accessControlSymbol: Symbol = Symbol('ColumnBillingAccessControl');
|
||||
const accessControlSymbol: symbol = Symbol('ColumnBillingAccessControl');
|
||||
|
||||
export default (
|
||||
accessControl: ColumnBillingAccessControl
|
||||
|
@ -4,7 +4,7 @@ import { ReflectionMetadataType } from '../Reflection';
|
||||
import TableColumnType from './TableColumnType';
|
||||
import 'reflect-metadata';
|
||||
|
||||
const tableColumn: Symbol = Symbol('TableColumn');
|
||||
const tableColumn: symbol = Symbol('TableColumn');
|
||||
|
||||
export interface TableColumnMetadata {
|
||||
title?: string;
|
||||
|
@ -3,7 +3,7 @@ import Dictionary from '../Dictionary';
|
||||
import { ReflectionMetadataType } from '../Reflection';
|
||||
import 'reflect-metadata';
|
||||
|
||||
const uniqueColumnBy: Symbol = Symbol('UniqueColumnBy');
|
||||
const uniqueColumnBy: symbol = Symbol('UniqueColumnBy');
|
||||
|
||||
export default (columnName: string | Array<string>): ReflectionMetadataType => {
|
||||
return Reflect.metadata(uniqueColumnBy, columnName);
|
||||
|
Loading…
Reference in New Issue
Block a user