mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 23:03:32 +00:00
Fix strict typescript for Component Library stories (#12423)
Fixing some low hanging fruits for moving CL to strict typescript. This primarily removes the types from args since TS infers them differently. We previously needed them since storybook would use any for args but now provides proper typings
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { Component } from "@angular/core";
|
||||
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
|
||||
import { Meta, StoryObj, applicationConfig, moduleMetadata } from "@storybook/angular";
|
||||
@@ -72,7 +70,7 @@ class StoryDialogComponent {
|
||||
content: this.i18nService.t("dialogContent"),
|
||||
type: "primary",
|
||||
acceptButtonText: "Ok",
|
||||
cancelButtonText: null,
|
||||
cancelButtonText: undefined,
|
||||
},
|
||||
{
|
||||
title: this.i18nService.t("primaryTypeSimpleDialog"),
|
||||
@@ -123,7 +121,7 @@ class StoryDialogComponent {
|
||||
|
||||
showCallout = false;
|
||||
calloutType = "info";
|
||||
dialogCloseResult: boolean;
|
||||
dialogCloseResult?: boolean;
|
||||
|
||||
constructor(
|
||||
public dialogService: DialogService,
|
||||
|
||||
Reference in New Issue
Block a user