Skip to content

Commit

Permalink
Move SequenceTypes to enums file
Browse files Browse the repository at this point in the history
  • Loading branch information
joswig committed Feb 11, 2025
1 parent 69a9cb0 commit 2331c08
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/enums/sequencing.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export enum SequenceTypes {
LIBRARY = 'library',
USER = 'user',
}
6 changes: 1 addition & 5 deletions src/types/sequencing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import type {
import type { VariableDeclaration } from '@nasa-jpl/seq-json-schema/types';
import type { EditorView } from 'codemirror';
import type { DictionaryTypes } from '../enums/dictionaryTypes';
import type { SequenceTypes } from '../enums/sequencing';
import type { ArgDelegator } from '../utilities/sequence-editor/extension-points';
import type { UserId } from './app';
import type { GlobalType } from './global-type';
Expand Down Expand Up @@ -139,11 +140,6 @@ export type GetSeqJsonResponse = {

export type SeqJson = any; // TODO: Strongly type.

export enum SequenceTypes {
LIBRARY = 'library',
USER = 'user',
}

export type UserSequence = {
created_at: string;
definition: string;
Expand Down
3 changes: 2 additions & 1 deletion src/utilities/codemirror/seq-n-tree-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import {
TOKEN_REQUEST,
TOKEN_STRING,
} from '../../constants/seq-n-grammar-constants';
import { SequenceTypes, type LibrarySequence, type UserSequence } from '../../types/sequencing';
import { SequenceTypes } from '../../enums/sequencing';
import { type LibrarySequence, type UserSequence } from '../../types/sequencing';
import { fswCommandArgDefault } from '../sequence-editor/command-dictionary';
import { validateVariables } from '../sequence-editor/sequence-linter';
import { parseVariables } from '../sequence-editor/to-seq-json';
Expand Down
3 changes: 2 additions & 1 deletion src/utilities/codemirror/vml/vmlAdaptation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ import type {
HwCommand,
} from '@nasa-jpl/aerie-ampcs';
import type { VariableDeclaration } from '@nasa-jpl/seq-json-schema/types';
import { SequenceTypes } from '../../../enums/sequencing';
import type { GlobalType } from '../../../types/global-type';
import { SequenceTypes, type LibrarySequence, type LibrarySequenceMap } from '../../../types/sequencing';
import { type LibrarySequence, type LibrarySequenceMap } from '../../../types/sequencing';
import { getNearestAncestorNodeOfType } from '../../sequence-editor/tree-utils';
import { isFswCommand, unquoteUnescape } from '../codemirror-utils';
import { VmlLanguage } from './vml';
Expand Down

0 comments on commit 2331c08

Please sign in to comment.