Skip to content

provided types to the funtion #542

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 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/components/DialogBox/CombinationalAnalysis.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ const buttonArr = ref([{}])
const showAlert = ref(false)
const alertType = ref('error')
const alertMessage = ref('')
const outputListNamesInteger = ref([])
const inputListNames = ref([])
const outputListNames = ref([])
const outputListNamesInteger = ref<number[]>([])
const inputListNames = ref<string[]>([])
const outputListNames = ref(<string []>[])
const tableHeader = ref([])
const tableBody = ref([])
const output = ref([])
Expand Down Expand Up @@ -214,11 +214,11 @@ function createLogicTable() {
}
}

function createBooleanPrompt(inputList, outputList, scope = globalScope) {
function createBooleanPrompt(inputList : string[] , outputList :string[], scope = globalScope) {
inputListNames.value =
inputList || prompt('Enter inputs separated by commas').split(',')
inputList || prompt('Enter inputs separated by commas')?.split(',')
outputListNames.value =
outputList || prompt('Enter outputs separated by commas').split(',')
outputList || prompt('Enter outputs separated by commas')?.split(',')
if (output.value == null) {
for (var i = 0; i < outputListNames.value.length; i++) {
outputListNamesInteger.value[i] = 7 * i + 13
Expand Down