@medplum/react 5.0.11 → 5.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,6 +86,7 @@ import type { Timing } from '@medplum/fhirtypes';
86
86
  import type { TypedValue } from '@medplum/core';
87
87
  import type { ValueSetExpandParams } from '@medplum/core';
88
88
  import type { ValueSetExpansionContains } from '@medplum/fhirtypes';
89
+ import type { WithId } from '@medplum/core';
89
90
 
90
91
  /**
91
92
  * Adds a filter for a date between two dates (inclusive of both dates).
@@ -1866,7 +1867,7 @@ export declare interface UseQuestionnaireFormProps {
1866
1867
  * @param setOutcome - Optional callback to set the OperationOutcome.
1867
1868
  * @returns The resolved resource.
1868
1869
  */
1869
- export declare function useResource<T extends Resource>(value: Reference<T> | Partial<T> | undefined, setOutcome?: (outcome: OperationOutcome) => void): T | undefined;
1870
+ export declare function useResource<T extends Resource>(value: Reference<T> | Partial<T> | undefined, setOutcome?: (outcome: OperationOutcome) => void): WithId<T> | undefined;
1870
1871
 
1871
1872
  /**
1872
1873
  * React hook for searching FHIR resources.
@@ -86,6 +86,7 @@ import type { Timing } from '@medplum/fhirtypes';
86
86
  import type { TypedValue } from '@medplum/core';
87
87
  import type { ValueSetExpandParams } from '@medplum/core';
88
88
  import type { ValueSetExpansionContains } from '@medplum/fhirtypes';
89
+ import type { WithId } from '@medplum/core';
89
90
 
90
91
  /**
91
92
  * Adds a filter for a date between two dates (inclusive of both dates).
@@ -1866,7 +1867,7 @@ export declare interface UseQuestionnaireFormProps {
1866
1867
  * @param setOutcome - Optional callback to set the OperationOutcome.
1867
1868
  * @returns The resolved resource.
1868
1869
  */
1869
- export declare function useResource<T extends Resource>(value: Reference<T> | Partial<T> | undefined, setOutcome?: (outcome: OperationOutcome) => void): T | undefined;
1870
+ export declare function useResource<T extends Resource>(value: Reference<T> | Partial<T> | undefined, setOutcome?: (outcome: OperationOutcome) => void): WithId<T> | undefined;
1870
1871
 
1871
1872
  /**
1872
1873
  * React hook for searching FHIR resources.