Skip to content

Expand ts #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from
Open

Expand ts #61

wants to merge 9 commits into from

Conversation

gizmo572
Copy link
Contributor

@gizmo572 gizmo572 commented Nov 1, 2023

SUMMARY

convert all TypeScript “any" types to specific types

CHANGES

add 'interfaces' folder to 'renderer/src' folder, containing interfaces that collectively cover all state in the redux store, as well a couple type definitions related to IPC

define types of parameters and return values sent via IPC in 'preload/index.d.ts'

add keys to 'MethodButton' components returned via array mapping from the 'MethodButtonContainer' component

TESTING INFORMATION

  1. run “npm run typecheck”
    there should be no errors

  2. run “npm run make” to compile code and package it into an application file

  3. unzip and run this application file

  4. test all application features on a couple projects you’ve previously used for testing

…gration in ProjectPathModal.tsx. begin setting up interface for redux store global state
…terface from Interfaces.ts to index.d.ts in Preload process, finish altering frontend code using this interface
…st related useSelector invocations on frontend
…ces), adjust type assignment in frontend components accordingly
…pe, reconcile discrepency btwn position type of NodeProps and HandleProps b

y assigning default position type, explicitly export Componenets and Server interfaces from stateInterfaces.ts to be imported in Preload process as return values of 'send' invocation. Also create SendD
ata type in this process as conditional type of 'data' arg passed in to send method. Remove duplicate id prop from input tag in Header.tsx.
… files to stateInterface file, convert return type from Promise in send method to SendReturnObject, delete unused code in global.d.ts
…line 261: change componentCode arg to componentCode.data. componentController.js line 303: set

res.locals.componentCode to just fileCode instead of fileCode.data. (this mix up happened in the process of adding descriptive types)
@irenezw irenezw requested review from alisa-jin and irenezw November 9, 2023 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant