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:
Simon Larsen 2024-06-14 11:53:27 +01:00
parent ddbfbac802
commit 8ce432256c
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
5 changed files with 5 additions and 5 deletions

View File

@ -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;
};

View File

@ -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);

View File

@ -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

View File

@ -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;

View File

@ -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);