mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
Add prettier for codestyle and re-format everything (#1294)
This commit is contained in:
parent
8b78154075
commit
0aae1f70d2
319 changed files with 4809 additions and 3936 deletions
|
@ -11,7 +11,10 @@ export const initialState: ApiUrlObject = {
|
|||
apiUrl: ''
|
||||
}
|
||||
|
||||
export const ApiUrlReducer: Reducer<ApiUrlObject, ApiUrlActions> = (state: ApiUrlObject = initialState, action: ApiUrlActions) => {
|
||||
export const ApiUrlReducer: Reducer<ApiUrlObject, ApiUrlActions> = (
|
||||
state: ApiUrlObject = initialState,
|
||||
action: ApiUrlActions
|
||||
) => {
|
||||
switch (action.type) {
|
||||
case ApiUrlActionType.SET_API_URL:
|
||||
return (action as SetApiUrlAction).state
|
||||
|
|
|
@ -11,11 +11,11 @@ export enum ApiUrlActionType {
|
|||
}
|
||||
|
||||
export interface ApiUrlActions extends Action<ApiUrlActionType> {
|
||||
type: ApiUrlActionType;
|
||||
type: ApiUrlActionType
|
||||
}
|
||||
|
||||
export interface SetApiUrlAction extends ApiUrlActions {
|
||||
state: ApiUrlObject;
|
||||
state: ApiUrlObject
|
||||
}
|
||||
|
||||
export interface ApiUrlObject {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue