chore: add js-doc (#275)
This commit is contained in:
@@ -2,7 +2,7 @@ import Text from '@views/components/common/Text/Text';
|
||||
import React from 'react';
|
||||
|
||||
/**
|
||||
* A type that represents the flags that a course can have.
|
||||
* A type that represents the flags that a course can have
|
||||
*/
|
||||
export type Flag = 'WR' | 'QR' | 'GC' | 'CD' | 'E' | 'II';
|
||||
export const flagMap = {
|
||||
|
||||
@@ -13,6 +13,9 @@ import React, { Fragment } from 'react';
|
||||
|
||||
import ExtensionRoot from './ExtensionRoot/ExtensionRoot';
|
||||
|
||||
/**
|
||||
* Represents the props for the _Dialog component
|
||||
*/
|
||||
export interface _DialogProps {
|
||||
className?: string;
|
||||
title?: JSX.Element;
|
||||
|
||||
@@ -7,6 +7,10 @@ import Dialog from '../Dialog';
|
||||
import Text from '../Text/Text';
|
||||
|
||||
type DialogElement = (show: boolean) => ReactNode;
|
||||
|
||||
/**
|
||||
* Represents information for a prompt dialog
|
||||
*/
|
||||
export interface PromptInfo extends Omit<DialogInfo, 'buttons' | 'className' | 'title' | 'description'> {
|
||||
title: JSX.Element | string;
|
||||
description: JSX.Element | string;
|
||||
|
||||
Reference in New Issue
Block a user