Skip to content

Commit

Permalink
Make entityKind private
Browse files Browse the repository at this point in the history
  • Loading branch information
robatwilliams committed Dec 15, 2023
1 parent bb07af6 commit afbe837
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/functions/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ CustomFunctions.associate('CHAT_COMPLETE', async (messages, params) => {
type: Excel.CellValueType.entity,
text: json.choices[0].message.content,
properties: {
entityKind: COMPLETION_ENTITY_KIND,
// These are accessible using formulas. Prefix any that are only for
// this addin's use, or only for display use, with _.

_entityKind: COMPLETION_ENTITY_KIND,

// For visibility of newlines without needing to use cell text wrap.
_lines:
Expand Down Expand Up @@ -161,7 +164,7 @@ function validateIsCompletion(anyTypedParameter) {
if (
!(
anyTypedParameter.type === Excel.CellValueType.entity &&
anyTypedParameter.properties.entityKind.basicValue ===
anyTypedParameter.properties._entityKind.basicValue ===
COMPLETION_ENTITY_KIND
)
) {
Expand Down

0 comments on commit afbe837

Please sign in to comment.