Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
style: format the code using prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
klemenoslaj committed Mar 20, 2021
1 parent 9d7a545 commit 7e94a58
Show file tree
Hide file tree
Showing 56 changed files with 2,382 additions and 2,422 deletions.
6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"editor.formatOnSave": false,
"editor.formatOnSave": true,
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
58 changes: 29 additions & 29 deletions projects/core/src/lib/action-abstract/action-abstract.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,46 @@ import { AnyAction } from '../action-outlet.model';
* All components will shere this interface after implementing derived component implementation types
*/
export interface ActionAbstractComponentImpl<Action extends AnyAction = AnyAction> {
/**
* The derived action instance, as Input in angular component
*/
_action?: Action | null; // @Input
/**
* The derived action instance, as Input in angular component
*/
_action?: Action | null; // @Input
}

/**
* Abstract action options, extended by all options of every derived action class
*/
export interface ActionAbstractOptions {
/**
* Optional **initial** action title
*/
readonly title?: string;
/**
* Optional **initial** action icon
*/
readonly icon?: string;
/**
* Optional **initial** action visibility state
*/
readonly visible?: boolean;
/**
* Optional **initial** action disabled state
*/
readonly disabled?: boolean;
/**
* An aria label added to the button element: https://www.w3.org/TR/wai-aria/#aria-label
*/
readonly ariaLabel?: string;
/**
* Optional **initial** action title
*/
readonly title?: string;
/**
* Optional **initial** action icon
*/
readonly icon?: string;
/**
* Optional **initial** action visibility state
*/
readonly visible?: boolean;
/**
* Optional **initial** action disabled state
*/
readonly disabled?: boolean;
/**
* An aria label added to the button element: https://www.w3.org/TR/wai-aria/#aria-label
*/
readonly ariaLabel?: string;
}

/**
* The event interface, that **every** event of child actions should extend from
* Used as a value provided to `fire$` observable subscribers
*/
export interface ActionAbstractEvent {
/**
* The action instance, tha this event is comming from
* Should be overriden by derived interface with more specific action
*/
readonly action: AnyAction;
/**
* The action instance, tha this event is comming from
* Should be overriden by derived interface with more specific action
*/
readonly action: AnyAction;
}
Loading

0 comments on commit 7e94a58

Please sign in to comment.