Refactor import statements to use ES6 module syntax and remove unused declarations

This commit is contained in:
Torsten Brendgen
2026-08-24 13:09:37 +02:00
parent 632d0fa1bc
commit 206f576e0d
4 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
"scripts": { "scripts": {
"build": "gulp bundle", "build": "gulp bundle",
"clean": "gulp clean", "clean": "gulp clean",
"test": "tsc --noEmit -p . && tsc -p tests/tsconfig.json && node temp/tests/tests/RecurringEventsCore.test.js && node tests/validate-project.js", "test": "tsc -p tests/tsconfig.json && node temp/tests/tests/RecurringEventsCore.test.js && node tests/validate-project.js",
"package": "npm test && gulp clean && gulp bundle --ship && gulp package-solution --ship" "package": "npm test && gulp clean && gulp bundle --ship && gulp package-solution --ship"
}, },
"dependencies": { "dependencies": {
-4
View File
@@ -1,4 +0,0 @@
declare module '*.module.scss' {
const styles: { [className: string]: string };
export = styles;
}
@@ -15,7 +15,7 @@ import { RecurringEventsDataService } from './RecurringEventsDataService';
import { EventsLayout, IEventDateRange, IEventsListOption, IRecurringEvent } from './RecurringEventsTypes'; import { EventsLayout, IEventDateRange, IEventsListOption, IRecurringEvent } from './RecurringEventsTypes';
import RecurringEvents from './components/RecurringEvents'; import RecurringEvents from './components/RecurringEvents';
import { IRecurringEventsProps } from './components/IRecurringEventsProps'; import { IRecurringEventsProps } from './components/IRecurringEventsProps';
import styles = require('./components/RecurringEvents.module.scss'); import styles from './components/RecurringEvents.module.scss';
export interface IRecurringEventsWebPartProps { export interface IRecurringEventsWebPartProps {
title: string; title: string;
@@ -1,6 +1,6 @@
import * as React from 'react'; import * as React from 'react';
import { IRecurringEvent } from '../RecurringEventsTypes'; import { IRecurringEvent } from '../RecurringEventsTypes';
import styles = require('./RecurringEvents.module.scss'); import styles from './RecurringEvents.module.scss';
import { IRecurringEventsProps } from './IRecurringEventsProps'; import { IRecurringEventsProps } from './IRecurringEventsProps';
export default class RecurringEvents extends React.Component<IRecurringEventsProps, {}> { export default class RecurringEvents extends React.Component<IRecurringEventsProps, {}> {