XML 19 R8.htm IDEA: XBRL DOCUMENT v3.22.2.2
Consolidated Schedule of Investments
£ in Thousands, $ in Thousands, $ in Thousands
9 Months Ended 12 Months Ended
Sep. 30, 2022
USD ($)
Dec. 31, 2021
USD ($)
Sep. 30, 2022
CAD ($)
Sep. 30, 2022
GBP (£)
Dec. 31, 2021
CAD ($)
Dec. 31, 2020
USD ($)
Schedule of Investments [Line Items]            
Investments, amortized cost $ 773,406 $ 831,960        
Investments, at fair value $ 764,554 $ 819,208        
Percent of net assets 222.86% 234.24% 222.86% 222.86% 234.24%  
PIK interest rate   1.50%     1.50%  
Qualifying Assets Required Of Acquiree At Time Of Acquisition Of Total Assets 70.00% 70.00%        
Qualifying Assets Of Acquired Of Total Assets 82.40% 88.20%        
Investments Of Net Assets 222.90% 234.20%        
Investment Of Total Assets 96.00% 96.30%        
Additional interest for senior term debt   2.75%        
Additional Interest For Senior Term Debt   3.50%        
Additional interest for senior term debt   3.00%        
Interest Issuer May Pay In Cash Or Cash And PIK.   2.00%        
Interest Investment Earns When Converted On Annual Basis   14.00%        
One-month LIBOR   0.10%        
Three-month LIBOR   0.21%        
Six-month LIBOR   0.34%        
SOFR   0.05%        
CDOR   0.52%        
Canadian prime   2.45%        
Prime   3.25%        
Unrealized appreciation $ 10          
Morgan Stanley            
Schedule of Investments [Line Items]            
Unrealized appreciation $ 10          
Morgan Stanley | CAD            
Schedule of Investments [Line Items]            
Currency to be sold 199          
Morgan Stanley | USD            
Schedule of Investments [Line Items]            
Currency to be purchased 155          
Advertising            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 9,763          
Investments, at fair value $ 9,782          
Air Freight & Logistics            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 3,531          
Investments, at fair value $ 3,557          
Application Software            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 13,183 $ 13,247        
Investments, at fair value $ 13,411 $ 13,518        
Building Products            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 14,125 $ 16,441        
Investments, at fair value $ 14,305 $ 16,603        
Construction & Engineering            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 8,534 $ 13,626        
Investments, at fair value $ 8,625 $ 13,975        
Data Processing & Outsourced Services            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 15,497 $ 15,766        
Investments, at fair value $ 14,507 $ 16,160        
Diversified Support Services            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 12,302 $ 12,773        
Investments, at fair value $ 11,741 $ 10,489        
Electronic Equipment & Instruments            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 13,564 $ 6,680        
Investments, at fair value $ 13,485 $ 6,687        
Environmental & Facilities Services            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 18,577 $ 6,780        
Investments, at fair value $ 18,641 $ 6,872        
Household Appliances            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 8,325          
Investments, at fair value $ 7,773          
Industrial Machinery            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 15,168 $ 6,727        
Investments, at fair value $ 15,276 $ 6,815        
Internet & Direct Marketing Retail            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 18,901 $ 15,153        
Investments, at fair value $ 19,114 $ 15,353        
Investment Banking & Brokerage            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 5,643 $ 9,943        
Investments, at fair value $ 5,687 $ 10,054        
IT Consulting And Other Services            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 34,933 $ 40,384        
Investments, at fair value $ 33,342 $ 40,697        
Leisure Products            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 8,945 $ 8,931        
Investments, at fair value $ 9,044 $ 8,930        
Packaged Foods & Meats            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 12,297 $ 26,802        
Investments, at fair value $ 11,998 $ 25,606        
Personal Products            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 3,639 $ 4,185        
Investments, at fair value $ 3,698 $ 4,273        
Real Estate Operating Companies            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 10,777 $ 4,781        
Investments, at fair value $ 10,722 $ 4,780        
Research & Consulting Services            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 8,799 $ 8,852        
Investments, at fair value $ 8,832 $ 8,901        
Systems Software            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investments, amortized cost   $ 9,801        
Investments, at fair value   $ 9,898        
Technology Hardware, Storage & Peripherals            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 14,899 $ 14,694        
Investments, at fair value $ 14,991 14,725        
Debt Investments            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 727,213 794,969        
Investments, at fair value $ 716,495 $ 781,049        
Percent of net assets 208.83% 223.32% 208.83% 208.83% 223.32%  
Debt Investments | Advertising            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investments, amortized cost   $ 9,490        
Investments, at fair value   $ 9,488        
Percent of net assets   2.71%     2.71%  
Debt Investments | Air Freight & Logistics            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 15,655 $ 20,021        
Investments, at fair value $ 15,440 $ 20,129        
Percent of net assets 4.50% 5.75% 4.50% 4.50% 5.75%  
Debt Investments | Alternative Carriers            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 12,040          
Investments, at fair value $ 11,993          
Percent of net assets 3.50%   3.50% 3.50%    
Debt Investments | Application Software            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 20,674 $ 22,460        
Investments, at fair value $ 18,145 $ 22,590        
Percent of net assets 5.28% 6.46% 5.28% 5.28% 6.46%  
Debt Investments | Asset Management & Custody Banks            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 10,108          
Investments, at fair value $ 10,169          
Percent of net assets 2.97%   2.97% 2.97%    
Debt Investments | Automotive Retail            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 14,532 $ 15,193        
Investments, at fair value $ 14,594 $ 15,286        
Percent of net assets 4.25% 4.37% 4.25% 4.25% 4.37%  
Debt Investments | Broadcasting            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 8,052 $ 8,027        
Investments, at fair value $ 7,942 $ 8,027        
Percent of net assets 2.32% 2.30% 2.32% 2.32% 2.30%  
Debt Investments | Building Products            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 26,714 $ 43,653        
Investments, at fair value $ 24,714 $ 43,757        
Percent of net assets 7.20% 12.51% 7.20% 7.20% 12.51%  
Debt Investments | Cable & Satellite            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 14,891 $ 14,936        
Investments, at fair value $ 14,323 $ 14,526        
Percent of net assets 4.18% 4.15% 4.18% 4.18% 4.15%  
Debt Investments | Commodity Chemicals            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 15,777 $ 15,047        
Investments, at fair value $ 16,003 $ 15,172        
Percent of net assets 4.67% 4.34% 4.67% 4.67% 4.34%  
Debt Investments | Construction & Engineering            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investments, amortized cost   $ 10,814        
Investments, at fair value   $ 11,086        
Percent of net assets   3.17%     3.17%  
Debt Investments | Construction Materials            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 8,402 $ 7,725        
Investments, at fair value $ 8,168 $ 7,673        
Percent of net assets 2.37% 2.20% 2.37% 2.37% 2.20%  
Debt Investments | Consumer Finance            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investments, amortized cost   $ 9,455        
Investments, at fair value   $ 9,628        
Percent of net assets   2.76%     2.76%  
Debt Investments | Data Processing & Outsourced Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 39,673 $ 31,301        
Investments, at fair value $ 41,019 $ 31,971        
Percent of net assets 11.96% 9.14% 11.96% 11.96% 9.14%  
Debt Investments | Department Stores            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investments, amortized cost   $ 13,331        
Investments, at fair value   $ 13,538        
Percent of net assets   3.87%     3.87%  
Debt Investments | Distributors            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 5,326 $ 4,949        
Investments, at fair value $ 3,618 $ 4,025        
Percent of net assets 1.05% 1.15% 1.05% 1.05% 1.15%  
Debt Investments | Diversified Chemicals            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 14,867 $ 18,643        
Investments, at fair value $ 13,941 $ 18,360        
Percent of net assets 4.06% 5.25% 4.06% 4.06% 5.25%  
Debt Investments | Diversified Support Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 11,264 $ 11,459        
Investments, at fair value $ 11,165 $ 11,460        
Percent of net assets 3.25% 3.28% 3.25% 3.25% 3.28%  
Debt Investments | Education Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 13,315 $ 13,235        
Investments, at fair value $ 13,285 $ 13,231        
Percent of net assets 3.87% 3.79% 3.87% 3.87% 3.79%  
Debt Investments | Electric Utilities            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 10,331 $ 10,299        
Investments, at fair value $ 10,408 $ 10,296        
Percent of net assets 3.03% 2.94% 3.03% 3.03% 2.94%  
Debt Investments | Electronic Equipment & Instruments            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investments, amortized cost   $ 6,684        
Investments, at fair value   $ 6,687        
Percent of net assets   1.91%     1.91%  
Debt Investments | Environmental & Facilities Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 18,251 $ 32,174        
Investments, at fair value $ 18,108 $ 32,173        
Percent of net assets 5.28% 9.20% 5.28% 5.28% 9.20%  
Debt Investments | Health Care Facilities            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration]   Health Care Facilities     Health Care Facilities  
Investments, amortized cost $ 10,392 $ 36,949        
Investments, at fair value $ 10,318 $ 25,576        
Percent of net assets 3.01% 7.31% 3.01% 3.01% 7.31%  
Debt Investments | Health Care Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 33,516 $ 57,609        
Investments, at fair value $ 32,756 $ 57,037        
Percent of net assets 9.56% 16.30% 9.56% 9.56% 16.30%  
Debt Investments | Health Care Supplies            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 23,199          
Investments, at fair value $ 23,354          
Percent of net assets 6.80%   6.80% 6.80%    
Debt Investments | Heavy Electrical Equipment            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 14,045 $ 11,027        
Investments, at fair value $ 13,897 $ 11,088        
Percent of net assets 4.05% 3.17% 4.05% 4.05% 3.17%  
Debt Investments | Home Furnishings            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 25,404 $ 24,479        
Investments, at fair value $ 25,311 $ 24,017        
Percent of net assets 7.37% 6.87% 7.37% 7.37% 6.87%  
Debt Investments | Household Products            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 11,897 $ 11,637        
Investments, at fair value $ 11,414 $ 11,773        
Percent of net assets 3.32% 3.36% 3.32% 3.32% 3.36%  
Debt Investments | Household Appliances            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 6,040          
Investments, at fair value $ 6,003          
Percent of net assets 1.75%   1.75% 1.75%    
Debt Investments | Industrial Machinery            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 7,521          
Investments, at fair value $ 7,541          
Percent of net assets 2.20%   2.20% 2.20%    
Debt Investments | Interactive Media & Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 8,006 $ 18,609        
Investments, at fair value $ 7,933 $ 18,759        
Percent of net assets 2.31% 5.36% 2.31% 2.31% 5.36%  
Debt Investments | Internet & Direct Marketing Retail            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 37,285 $ 41,910        
Investments, at fair value $ 37,542 $ 42,440        
Percent of net assets 10.95% 12.13% 10.95% 10.95% 12.13%  
Debt Investments | Investment Banking & Brokerage            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 12,043 $ 12,674        
Investments, at fair value $ 12,077 $ 12,729        
Percent of net assets 3.52% 3.64% 3.52% 3.52% 3.64%  
Debt Investments | IT Consulting And Other Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 13,649 $ 17,679        
Investments, at fair value $ 13,653 $ 17,694        
Percent of net assets 3.98% 5.06% 3.98% 3.98% 5.06%  
Debt Investments | Leisure Facilities            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 22,075 $ 22,020        
Investments, at fair value $ 21,868 $ 21,878        
Percent of net assets 6.37% 6.26% 6.37% 6.37% 6.26%  
Debt Investments | Leisure Products            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] us-gaap-supplement:InvestmentAffiliatedIssuerMember Non-controlled/non-affiliate company investments us-gaap-supplement:InvestmentAffiliatedIssuerMember us-gaap-supplement:InvestmentAffiliatedIssuerMember Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 3,565 $ 6,115        
Investments, at fair value $ 3,509 $ 3,072        
Percent of net assets 1.02% 0.88% 1.02% 1.02% 0.88%  
Debt Investments | Life Sciences Tools & Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 4,932 $ 4,925        
Investments, at fair value $ 4,912 $ 4,925        
Percent of net assets 1.43% 1.41% 1.43% 1.43% 1.41%  
Debt Investments | Office Services & Supplies            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 26,109 $ 20,832        
Investments, at fair value $ 25,039 $ 20,921        
Percent of net assets 7.30% 5.98% 7.30% 7.30% 5.98%  
Debt Investments | Packaged Foods & Meats            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 11,175 $ 11,084        
Investments, at fair value $ 10,922 $ 10,862        
Percent of net assets 3.19% 3.11% 3.19% 3.19% 3.11%  
Debt Investments | Personal Products            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 13,703 $ 12,055        
Investments, at fair value $ 13,566 $ 12,260        
Percent of net assets 3.96% 3.50% 3.96% 3.96% 3.50%  
Debt Investments | Paper Packaging            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 8,099          
Investments, at fair value $ 8,099          
Percent of net assets 2.35%   2.35% 2.35%    
Debt Investments | Real Estate Operating Companies            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investments, amortized cost   $ 5,425        
Investments, at fair value   $ 5,431        
Percent of net assets   1.56%     1.56%  
Debt Investments | Research & Consulting Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 22,244 $ 23,987        
Investments, at fair value $ 22,316 $ 23,822        
Percent of net assets 6.50% 6.81% 6.50% 6.50% 6.81%  
Debt Investments | Specialized Consumer Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 36,993 $ 35,322        
Investments, at fair value $ 37,096 $ 35,385        
Percent of net assets 10.82% 10.11% 10.82% 10.82% 10.11%  
Debt Investments | Specialized Finance            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 80,000 $ 60,000        
Investments, at fair value $ 80,000 $ 60,000        
Percent of net assets 23.32% 17.16% 23.32% 23.32% 17.16%  
Debt Investments | Systems Software            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 18,970 $ 19,018        
Investments, at fair value $ 17,525 $ 19,160        
Percent of net assets 5.11% 5.48% 5.11% 5.11% 5.48%  
Debt Investments | Technology Hardware, Storage & Peripherals            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 16,479 $ 22,717        
Investments, at fair value $ 16,809 $ 23,117        
Percent of net assets 4.90% 6.61% 4.90% 4.90% 6.61%  
Subordinated Debt [Member]            
Schedule of Investments [Line Items]            
Investments, amortized cost $ 167 $ 167        
Investments, at fair value $ 167 167        
Equity Investments            
Schedule of Investments [Line Items]            
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 46,193 36,991        
Investments, at fair value $ 48,059 $ 38,159        
Percent of net assets 14.03% 10.92% 14.03% 14.03% 10.92%  
Equity Investments | Advertising            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 251 $ 250        
Investments, at fair value $ 219 $ 250        
Percent of net assets 0.06% 0.07% 0.06% 0.06% 0.07%  
Equity Investments | Air Freight & Logistics            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 1,250 $ 1,250        
Investments, at fair value $ 606 $ 1,250        
Percent of net assets 0.18% 0.36% 0.18% 0.18% 0.36%  
Equity Investments | Building Products            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 423          
Investments, at fair value $ 603          
Percent of net assets 0.18%   0.18% 0.18%    
Equity Investments | Data Processing & Outsourced Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 476 $ 423        
Investments, at fair value $ 2,368       $ 427  
Percent of net assets 0.69% 0.12% 0.69% 0.69% 0.12%  
Equity Investments | Data Processing And Outsourced Services Acquired on 120420            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investments, amortized cost   $ 476        
Investments, at fair value   $ 893        
Percent of net assets   0.26%     0.26%  
Equity Investments | Diversified Support Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 333 $ 317        
Investments, at fair value $ 144 $ 158        
Percent of net assets 0.04% 0.05% 0.04% 0.04% 0.05%  
Equity Investments | Education Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 167 $ 167        
Investments, at fair value $ 118 $ 167        
Percent of net assets 0.03% 0.05% 0.03% 0.03% 0.05%  
Equity Investments | Environmental & Facilities Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 825 $ 825        
Investments, at fair value $ 661 $ 825        
Percent of net assets 0.19% 0.24% 0.19% 0.19% 0.24%  
Equity Investments | Health Care Facilities            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investments, amortized cost   $ 857        
Investments, at fair value   $ 1,018        
Percent of net assets   0.29%     0.29%  
Equity Investments | Industrial Machinery            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 667          
Investments, at fair value $ 668          
Percent of net assets 0.19%   0.19% 0.19%    
Equity Investments | Interactive Media & Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 851 $ 850        
Investments, at fair value $ 2,327 $ 1,398        
Percent of net assets 0.68% 0.40% 0.68% 0.68% 0.40%  
Equity Investments | Internet & Direct Marketing Retail            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 1,614 $ 1,700        
Investments, at fair value $ 2,770 $ 3,228        
Percent of net assets 0.81% 0.92% 0.81% 0.81% 0.92%  
Equity Investments | Investment Banking & Brokerage            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] us-gaap-supplement:InvestmentAffiliatedIssuerMember us-gaap-supplement:InvestmentAffiliatedIssuerMember us-gaap-supplement:InvestmentAffiliatedIssuerMember us-gaap-supplement:InvestmentAffiliatedIssuerMember us-gaap-supplement:InvestmentAffiliatedIssuerMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 6,944 $ 6,944        
Investments, at fair value $ 6,295 $ 6,874        
Percent of net assets 1.84% 1.97% 1.84% 1.84% 1.97%  
Equity Investments | IT Consulting And Other Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 1,468 $ 1,468        
Investments, at fair value $ 1,818 $ 1,468        
Percent of net assets 0.53% 0.42% 0.53% 0.53% 0.42%  
Equity Investments | Leisure Facilities            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 2,734 $ 2,734        
Investments, at fair value $ 221 $ 264        
Percent of net assets 0.07% 0.07% 0.07% 0.07% 0.07%  
Equity Investments | Leisure Products            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] us-gaap-supplement:InvestmentAffiliatedIssuerMember   us-gaap-supplement:InvestmentAffiliatedIssuerMember us-gaap-supplement:InvestmentAffiliatedIssuerMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 4,060          
Investments, at fair value $ 2,099          
Percent of net assets 0.62%   0.62% 0.62%    
Equity Investments | Other Diversified Financial Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 2,890 $ 2,890        
Investments, at fair value $ 3,823 $ 3,492        
Percent of net assets 1.11% 1.00% 1.11% 1.11% 1.00%  
Equity Investments | Paper Packaging            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investments, amortized cost $ 400          
Investments, at fair value $ 400          
Percent of net assets 0.12%   0.12% 0.12%    
Equity Investments | Specialized Consumer Services            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 840 $ 840        
Investments, at fair value $ 853 $ 840        
Percent of net assets 0.26% 0.24% 0.26% 0.26% 0.24%  
Equity Investments | Specialized Finance            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investments, amortized cost $ 20,000 $ 15,000        
Investments, at fair value $ 22,066 $ 15,607        
Percent of net assets 6.43% 4.46% 6.43% 6.43% 4.46%  
Non-controlled/non-affiliate company investments            
Schedule of Investments [Line Items]            
Investments, at fair value $ 650,585 $ 736,727        
Investment, Identifier [Axis]: ABB/Con-cise Optical Group LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:ABBCon-ciseOpticalGroupLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Health Care Supplies   Health Care Supplies Health Care Supplies    
Investment, Variable Interest Rate, Type [Extensible Enumeration] us-gaap:BaseRateMember   us-gaap:BaseRateMember us-gaap:BaseRateMember    
Floor 0.75%   0.75% 0.75%    
Spread Above Index 6.51%   6.51% 6.51%    
Interest Rate 12.72%   12.72% 12.72%    
Acquisition Date Feb. 23, 2022          
Maturity Date Feb. 23, 2028   Feb. 23, 2028 Feb. 23, 2028    
Investments, amortized cost $ 2,058          
Investments, at fair value $ 2,073          
Percent of net assets 0.60%   0.60% 0.60%    
Principal/Share Amount $ 2,106          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: ABB/Con-cise Optical Group LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:ABBCon-ciseOpticalGroupLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Health Care Supplies   Health Care Supplies Health Care Supplies    
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member]   London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]    
Floor 0.75%   0.75% 0.75%    
Spread Above Index 7.50%   7.50% 7.50%    
Interest Rate 10.46%   10.46% 10.46%    
Acquisition Date Feb. 23, 2022          
Maturity Date Feb. 23, 2028   Feb. 23, 2028 Feb. 23, 2028    
Investments, amortized cost $ 21,141          
Investments, at fair value $ 21,281          
Percent of net assets 6.20%   6.20% 6.20%    
Principal/Share Amount $ 21,627          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: ALM Media, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:ALMMediaLLCMember whf:ALMMediaLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Research & Consulting Services Research & Consulting Services Research & Consulting Services Research & Consulting Services Research & Consulting Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 7.00% 6.50% 6.50% 7.00%  
Interest Rate 9.31% 8.00% 9.31% 9.31% 8.00%  
Acquisition Date Nov. 25, 2019 Nov. 25, 2019        
Maturity Date Nov. 25, 2024 Nov. 25, 2024 Nov. 25, 2024 Nov. 25, 2024 Nov. 25, 2024  
Investments, amortized cost $ 13,467 $ 14,011        
Investments, at fair value $ 13,458 $ 13,996        
Percent of net assets 3.92% 4.00% 3.92% 3.92% 4.00%  
Principal/Share Amount $ 13,584 $ 14,175        
PIK interest rate   1.00%     1.00%  
Investment, interest rate, paid in cash   10.25%     10.25%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: AST Applications Software Technology LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:ASTApplicationsSoftwareTechnologyLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   IT Consulting And Other Services     IT Consulting And Other Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   8.00%     8.00%  
Interest Rate   9.00%     9.00%  
Acquisition Date   Jan. 10, 2017        
Maturity Date   Jan. 10, 2023     Jan. 10, 2023  
Investments, amortized cost   $ 3,943        
Investments, at fair value   $ 3,958        
Percent of net assets   1.13%     1.13%  
Principal/Share Amount   $ 3,958        
PIK interest rate   1.00%     1.00%  
Investment, interest rate, paid in cash   8.00%     8.00%  
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: ATSG Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:ATSGIncMember whf:ATSGIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 9.42% 7.50% 9.42% 9.42% 7.50%  
Acquisition Date Nov. 12, 2021 Nov. 12, 2021        
Maturity Date Nov. 12, 2026 Nov. 12, 2026 Nov. 12, 2026 Nov. 12, 2026 Nov. 12, 2026  
Investments, amortized cost $ 13,649 $ 13,736        
Investments, at fair value $ 13,653 $ 13,736        
Percent of net assets 3.98% 3.93% 3.98% 3.98% 3.93%  
Principal/Share Amount $ 13,877 $ 14,008        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Access USA Shipping, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:AccessUSAShippingLLCMember whf:AccessUSAShippingLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.50% 1.50% 1.50% 1.50% 1.50%  
Spread Above Index 8.00% 8.00% 8.00% 8.00% 8.00%  
Interest Rate 11.12% 9.50% 11.12% 11.12% 9.50%  
Acquisition Date Feb. 08, 2019 Feb. 08, 2019        
Maturity Date Feb. 08, 2024 Feb. 08, 2024 Feb. 08, 2024 Feb. 08, 2024 Feb. 08, 2024  
Investments, amortized cost $ 4,699 $ 4,906        
Investments, at fair value $ 4,718 $ 4,937        
Percent of net assets 1.38% 1.41% 1.38% 1.38% 1.41%  
Principal/Share Amount $ 4,718 $ 4,937        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Aeyon LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:AeyonLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Research & Consulting Services   Research & Consulting Services Research & Consulting Services    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 8.88%   8.88% 8.88%    
Interest Rate 11.62%   11.62% 11.62%    
Acquisition Date Feb. 10, 2022          
Maturity Date Feb. 10, 2027   Feb. 10, 2027 Feb. 10, 2027    
Investments, amortized cost $ 8,777          
Investments, at fair value $ 8,858          
Percent of net assets 2.58%   2.58% 2.58%    
Principal/Share Amount $ 8,933          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: American Crafts, LC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:AmericanCraftsLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember   whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Office Services & Supplies   Office Services & Supplies Office Services & Supplies    
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member]   London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 8.50%   8.50% 8.50%    
Interest Rate 11.62%   11.62% 11.62%    
Acquisition Date Jan. 25, 2022          
Maturity Date May 28, 2026   May 28, 2026 May 28, 2026    
Investments, amortized cost $ 1,344          
Investments, at fair value $ 1,195          
Percent of net assets 0.35%   0.35% 0.35%    
Principal/Share Amount $ 1,367          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: American Crafts, LC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:AmericanCraftsLCMember whf:AmericanCraftsLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Office Services & Supplies Office Services & Supplies Office Services & Supplies Office Services & Supplies Office Services & Supplies  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 8.50% 8.50% 8.50% 8.50% 8.50%  
Interest Rate 11.62% 9.50% 11.62% 11.62% 9.50%  
Acquisition Date May 28, 2021 May 28, 2021        
Maturity Date May 28, 2026 May 28, 2026 May 28, 2026 May 28, 2026 May 28, 2026  
Investments, amortized cost $ 8,050 $ 8,325        
Investments, at fair value $ 7,114 $ 8,325        
Percent of net assets 2.07% 2.38% 2.07% 2.07% 2.38%  
Principal/Share Amount $ 8,139 $ 8,434        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Arcole Holding Corporation Shares            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] us-gaap-supplement:InvestmentAffiliatedIssuerMember us-gaap-supplement:InvestmentAffiliatedIssuerMember us-gaap-supplement:InvestmentAffiliatedIssuerMember us-gaap-supplement:InvestmentAffiliatedIssuerMember us-gaap-supplement:InvestmentAffiliatedIssuerMember  
Investment, Issuer Name [Extensible Enumeration] whf:ArcoleHoldingCorporationMember whf:ArcoleHoldingCorporationMember        
Investment, Type [Extensible Enumeration] Common Stock [Member] Common Stock [Member] Common Stock [Member] Common Stock [Member] Common Stock [Member]  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Investment Banking & Brokerage Investment Banking & Brokerage Investment Banking & Brokerage Investment Banking & Brokerage Investment Banking & Brokerage  
Acquisition Date Oct. 01, 2020 Oct. 01, 2020        
Investments, amortized cost $ 6,944 $ 6,944        
Investments, at fair value $ 6,295 $ 6,874       $ 6,448
Percent of net assets 1.84% 1.97% 1.84% 1.84% 1.97%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: Arcstor Midco, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:ArcstorMidcoLLCMember whf:ArcstorMidcoLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Systems Software Systems Software Systems Software Systems Software Systems Software  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.00% 7.00% 7.00% 7.00% 7.00%  
Interest Rate 10.67% 8.00% 10.67% 10.67% 8.00%  
Acquisition Date Mar. 16, 2021 Mar. 16, 2021        
Maturity Date Mar. 16, 2027 Mar. 16, 2027 Mar. 16, 2027 Mar. 16, 2027 Mar. 16, 2027  
Investments, amortized cost $ 18,970 $ 19,018        
Investments, at fair value $ 17,525 $ 19,160        
Percent of net assets 5.11% 5.48% 5.11% 5.11% 5.48%  
Principal/Share Amount $ 19,256 $ 19,354        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Atlas Purchaser, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:AtlasPurchaserIncMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Application Software   Application Software Application Software    
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member]   London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]    
Floor 0.75%   0.75% 0.75%    
Spread Above Index 5.25%   5.25% 5.25%    
Interest Rate 8.68%   8.68% 8.68%    
Acquisition Date Aug. 29, 2022          
Maturity Date May 08, 2028   May 08, 2028 May 08, 2028    
Investments, amortized cost $ 2,595          
Investments, at fair value $ 2,562          
Percent of net assets 0.74%   0.74% 0.74%    
Principal/Share Amount $ 3,105          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Atlas Purchaser, Inc Second Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:AtlasPurchaserIncMember whf:AtlasPurchaserIncMember        
Investment, Type [Extensible Enumeration] whf:SecondLienSecuredTermLoanMember whf:SecondLienSecuredTermLoanMember whf:SecondLienSecuredTermLoanMember whf:SecondLienSecuredTermLoanMember whf:SecondLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Application Software Application Software Application Software Application Software Application Software  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 0.75% 0.75% 0.75% 0.75% 0.75%  
Spread Above Index 9.00% 9.00% 9.00% 9.00% 9.00%  
Interest Rate 11.19% 9.75% 11.19% 11.19% 9.75%  
Acquisition Date May 03, 2021 May 03, 2021        
Maturity Date May 07, 2029 May 07, 2029 May 07, 2029 May 07, 2029 May 07, 2029  
Investments, amortized cost $ 14,628 $ 14,586        
Investments, at fair value $ 12,197 $ 14,700        
Percent of net assets 3.55% 4.20% 3.55% 3.55% 4.20%  
Principal/Share Amount $ 15,000 $ 15,000        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Avision Holdings, LLC Class A LLC Interests            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:AvisionHoldingsLLCMember whf:AvisionHoldingsLLCMember        
Investment, Type [Extensible Enumeration] whf:ClassALLCInterestsMember whf:ClassALLCInterestsMember whf:ClassALLCInterestsMember whf:ClassALLCInterestsMember whf:ClassALLCInterestsMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Advertising Advertising Advertising Advertising Advertising  
Acquisition Date Dec. 15, 2021 Dec. 15, 2021        
Investments, amortized cost $ 251 $ 250        
Investments, at fair value $ 219 $ 250        
Percent of net assets 0.06% 0.07% 0.06% 0.06% 0.07%  
Principal/Share Amount $ 201 $ 200        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: BBQ Buyer, LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:BBQBuyerLLCMember whf:BBQBuyerLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.50% 1.50% 1.50% 1.50% 1.50%  
Spread Above Index 10.00% 10.00% 10.00% 10.00% 10.00%  
Interest Rate 13.12% 11.50% 13.12% 13.12% 11.50%  
Acquisition Date Apr. 29, 2022 Dec. 02, 2021        
Maturity Date Aug. 28, 2025 Aug. 28, 2025 Aug. 28, 2025 Aug. 28, 2025 Aug. 28, 2025  
Investments, amortized cost $ 2,553 $ 2,523        
Investments, at fair value $ 2,559 $ 2,523        
Percent of net assets 0.75% 0.72% 0.75% 0.75% 0.72%  
Principal/Share Amount $ 2,593 $ 2,573        
PIK interest rate 2.00% 2.00% 2.00% 2.00% 2.00%  
Investment, interest rate, paid in cash 11.12% 9.50% 11.12% 11.12% 9.50%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: BBQ Buyer, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:BBQBuyerLLCMember whf:BBQBuyerLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.50% 1.50% 1.50% 1.50% 1.50%  
Spread Above Index 10.00% 10.00% 10.00% 10.00% 10.00%  
Interest Rate 13.12% 11.50% 13.12% 13.12% 11.50%  
Acquisition Date Aug. 28, 2020 Aug. 28, 2020        
Maturity Date Aug. 28, 2025 Aug. 28, 2025 Aug. 28, 2025 Aug. 28, 2025 Aug. 28, 2025  
Investments, amortized cost $ 12,533 $ 12,388        
Investments, at fair value $ 12,616 $ 12,623        
Percent of net assets 3.68% 3.61% 3.68% 3.68% 3.61%  
Principal/Share Amount $ 12,719 $ 12,623        
PIK interest rate 2.00% 2.00% 2.00% 2.00% 2.00%  
Investment, interest rate, paid in cash 11.12% 9.50% 11.12% 11.12% 9.50%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: BBQ Buyer, LLC Shares            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:BBQBuyerLLCMember whf:BBQBuyerLLCMember        
Investment, Type [Extensible Enumeration] Common Stock [Member] Common Stock [Member] Common Stock [Member] Common Stock [Member] Common Stock [Member]  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail  
Acquisition Date Aug. 28, 2020 Aug. 28, 2020        
Investments, amortized cost $ 1,100 $ 1,100        
Investments, at fair value $ 1,954 $ 2,442        
Percent of net assets 0.57% 0.70% 0.57% 0.57% 0.70%  
Principal/Share Amount $ 1,100 $ 1,100        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: BL Products Parent, LP Class A Units            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:BLProductsParentLPMember          
Investment, Type [Extensible Enumeration] whf:ClassAUnitsMember   whf:ClassAUnitsMember whf:ClassAUnitsMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Industrial Machinery   Industrial Machinery Industrial Machinery    
Acquisition Date Feb. 01, 2022          
Investments, amortized cost $ 667          
Investments, at fair value $ 668          
Percent of net assets 0.19%   0.19% 0.19%    
Principal/Share Amount $ 667          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Non-income Producing [true false] false   false false    
Investment, Identifier [Axis]: BLP Buyer, Inc., First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.25%, Rate 7.44%, Due 2/1/27            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:BLProductsParentLPMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Industrial Machinery   Industrial Machinery Industrial Machinery    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.25%   6.25% 6.25%    
Interest Rate 9.00%   9.00% 9.00%    
Acquisition Date Feb. 18, 2022          
Maturity Date Feb. 01, 2027   Feb. 01, 2027 Feb. 01, 2027    
Investments, amortized cost $ 269          
Investments, at fair value 271          
Principal/Share Amount $ 274          
Investment, Identifier [Axis]: BLP Buyer, Inc., First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.25%, Rate 7.54%, Due 2/1/27            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:BLProductsParentLPMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Industrial Machinery   Industrial Machinery Industrial Machinery    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.25%   6.25% 6.25%    
Interest Rate 9.03%   9.03% 9.03%    
Acquisition Date Feb. 18, 2022          
Maturity Date Feb. 01, 2027   Feb. 01, 2027 Feb. 01, 2027    
Investments, amortized cost $ 8,066          
Investments, at fair value 8,080          
Principal/Share Amount $ 8,209          
Investment, Identifier [Axis]: BPII-JL Group Holdings LP Class A Units            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:BPII-JLGroupHoldingsLPMember whf:BPII-JLGroupHoldingsLPMember        
Investment, Type [Extensible Enumeration] whf:ClassAUnitsMember whf:ClassAUnitsMember whf:ClassAUnitsMember whf:ClassAUnitsMember whf:ClassAUnitsMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services  
Acquisition Date Dec. 29, 2021 Dec. 29, 2021        
Investments, amortized cost $ 825 $ 825        
Investments, at fair value $ 661 $ 825        
Percent of net assets 0.19% 0.24% 0.19% 0.19% 0.24%  
Principal/Share Amount $ 83 $ 83        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: Bridgepoint Healthcare, LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:BridgepointHealthcareLLCMember whf:BridgepointHealthcareLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Health Care Facilities Health Care Facilities Health Care Facilities Health Care Facilities Health Care Facilities  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.75% 7.75% 7.75% 7.75% 7.75%  
Interest Rate 10.51% 8.75% 10.51% 10.51% 8.75%  
Acquisition Date Oct. 05, 2021 Oct. 05, 2021        
Maturity Date Oct. 05, 2026 Oct. 05, 2026 Oct. 05, 2026 Oct. 05, 2026 Oct. 05, 2026  
Investments, at fair value $ (11)          
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Bridgepoint Healthcare, LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:BridgepointHealthcareLLCMember whf:BridgepointHealthcareLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Health Care Facilities Health Care Facilities Health Care Facilities Health Care Facilities Health Care Facilities  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.75% 7.75% 7.75% 7.75% 7.75%  
Interest Rate 10.51% 8.75% 10.51% 10.51% 8.75%  
Acquisition Date Oct. 05, 2021 Oct. 05, 2021        
Maturity Date Oct. 05, 2026 Oct. 05, 2026 Oct. 05, 2026 Oct. 05, 2026 Oct. 05, 2026  
Investments, at fair value $ (8)          
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Bridgepoint Healthcare, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:BridgepointHealthcareLLCMember whf:BridgepointHealthcareLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Health Care Facilities Health Care Facilities Health Care Facilities Health Care Facilities Health Care Facilities  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.75% 7.75% 7.75% 7.75% 7.75%  
Interest Rate 10.51% 8.75% 10.51% 10.51% 8.75%  
Acquisition Date Oct. 05, 2021 Oct. 05, 2021        
Maturity Date Oct. 05, 2026 Oct. 05, 2026 Oct. 05, 2026 Oct. 05, 2026 Oct. 05, 2026  
Investments, amortized cost $ 10,392 $ 10,770        
Investments, at fair value $ 10,337 $ 10,769        
Percent of net assets 3.01% 3.08% 3.01% 3.01% 3.08%  
Principal/Share Amount $ 10,562 $ 10,979        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Bulk Midco, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:BulkMidcoLLCMember whf:BulkMidcoLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Cable & Satellite Cable & Satellite Cable & Satellite Cable & Satellite Cable & Satellite  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 5.25% 7.24% 5.25% 5.25% 7.24%  
Interest Rate 11.50% 8.24% 11.50% 11.50% 8.24%  
Acquisition Date Jun. 08, 2018 Jun. 08, 2018        
Maturity Date Jun. 08, 2023 Jun. 08, 2023 Jun. 08, 2023 Jun. 08, 2023 Jun. 08, 2023  
Investments, amortized cost $ 14,891 $ 14,936        
Investments, at fair value $ 14,323 $ 14,526        
Percent of net assets 4.18% 4.15% 4.18% 4.18% 4.15%  
Principal/Share Amount $ 14,922 $ 15,000        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Additional interest for senior term debt 2.75%          
Investment, Identifier [Axis]: CHS Therapy, LLC First Lien Secured Term Loan A            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:CHSTherapyLLCMember whf:CHSTherapyLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanAMember whf:FirstLienSecuredTermLoanAMember whf:FirstLienSecuredTermLoanAMember whf:FirstLienSecuredTermLoanAMember whf:FirstLienSecuredTermLoanAMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Health Care Services Health Care Services Health Care Services Health Care Services Health Care Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.50% 1.50% 1.50% 1.50% 1.50%  
Spread Above Index 9.00% 9.00% 9.00% 9.00% 9.00%  
Interest Rate 12.67% 10.50% 12.67% 12.67% 10.50%  
Acquisition Date Jun. 14, 2019 Jun. 14, 2019        
Maturity Date Jun. 14, 2024 Jun. 14, 2024 Jun. 14, 2024 Jun. 14, 2024 Jun. 14, 2024  
Investments, amortized cost $ 7,079 $ 7,175        
Investments, at fair value $ 7,125 $ 7,242        
Percent of net assets 2.08% 2.07% 2.08% 2.08% 2.07%  
Principal/Share Amount $ 7,125 $ 7,242        
PIK interest rate 0.50% 0.50% 0.50% 0.50% 0.50%  
Investment, interest rate, paid in cash 12.17% 10.00% 12.17% 12.17% 10.00%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: CHS Therapy, LLC First Lien Secured Term Loan C            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:CHSTherapyLLCMember whf:CHSTherapyLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanCMember whf:FirstLienSecuredTermLoanCMember whf:FirstLienSecuredTermLoanCMember whf:FirstLienSecuredTermLoanCMember whf:FirstLienSecuredTermLoanCMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Health Care Services Health Care Services Health Care Services Health Care Services Health Care Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.50% 1.50% 1.50% 1.50% 1.50%  
Spread Above Index 9.00% 9.00% 9.00% 9.00% 9.00%  
Interest Rate 12.67% 10.50% 12.67% 12.67% 10.50%  
Acquisition Date Oct. 07, 2020 Oct. 07, 2020        
Maturity Date Jun. 14, 2024 Jun. 14, 2024 Jun. 14, 2024 Jun. 14, 2024 Jun. 14, 2024  
Investments, amortized cost $ 869 $ 879        
Investments, at fair value $ 877 $ 891        
Percent of net assets 0.26% 0.25% 0.26% 0.26% 0.25%  
Principal/Share Amount $ 877 $ 891        
PIK interest rate 0.50% 0.50% 0.50% 0.50% 0.50%  
Investment, interest rate, paid in cash 12.17% 10.00% 12.17% 12.17% 10.00%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: CX Holdco LLC Common Units            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:CXHoldcoLLCMember whf:CXHoldcoLLCMember        
Investment, Type [Extensible Enumeration] whf:CommonUnitsMember whf:CommonUnitsMember whf:CommonUnitsMember whf:CommonUnitsMember whf:CommonUnitsMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services  
Acquisition Date May 04, 2021 May 04, 2021        
Investments, amortized cost $ 972 $ 972        
Investments, at fair value $ 1,457 $ 972        
Percent of net assets 0.42% 0.28% 0.42% 0.42% 0.28%  
Principal/Share Amount $ 972 $ 972        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: Camp Facility Services Holdings, LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:CampFacilityServicesHoldingsLLCMember whf:CampFacilityServicesHoldingsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 9.55% 7.50% 9.55% 9.55% 7.50%  
Acquisition Date Nov. 16, 2021 Nov. 16, 2021        
Maturity Date Nov. 16, 2027 Nov. 16, 2027 Nov. 16, 2027 Nov. 16, 2027 Nov. 16, 2027  
Investments, at fair value $ (24) $ (1)        
Percent of net assets (0.01%)   (0.01%) (0.01%)    
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Camp Facility Services Holdings, LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:CampFacilityServicesHoldingsLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Specialized Consumer Services     Specialized Consumer Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.50%     6.50%  
Interest Rate   7.50%     7.50%  
Acquisition Date   Nov. 16, 2021        
Maturity Date   Nov. 16, 2027     Nov. 16, 2027  
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Camp Facility Services Holdings, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:CampFacilityServicesHoldingsLLCMember whf:CampFacilityServicesHoldingsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 9.55% 7.50% 9.55% 9.55% 7.50%  
Acquisition Date Nov. 16, 2021 Nov. 16, 2021        
Maturity Date Nov. 16, 2027 Nov. 16, 2027 Nov. 16, 2027 Nov. 16, 2027 Nov. 16, 2027  
Investments, amortized cost $ 11,628 $ 12,745        
Investments, at fair value $ 11,558 $ 12,742        
Percent of net assets 3.37% 3.64% 3.37% 3.37% 3.64%  
Principal/Share Amount $ 11,830 $ 13,000        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Camp Facility Services Parent, LLC Preferred Units            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:CampFacilityServicesParentLLCMember whf:CampFacilityServicesParentLLCMember        
Investment, Type [Extensible Enumeration] whf:PreferredUnitsMember whf:PreferredUnitsMember whf:PreferredUnitsMember whf:PreferredUnitsMember whf:PreferredUnitsMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services  
Spread Above Index 10.00% 10.00% 10.00% 10.00% 10.00%  
Acquisition Date Nov. 16, 2021 Nov. 16, 2021        
Investments, amortized cost $ 840 $ 840        
Investments, at fair value $ 853 $ 840        
Percent of net assets 0.26% 0.24% 0.26% 0.26% 0.24%  
Principal/Share Amount $ 15 $ 15        
PIK interest rate 10.00% 10.00% 10.00% 10.00% 10.00%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false true false false true  
Investment, Identifier [Axis]: Cennox Holdings Limited, First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 5/4/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:CennoxHoldingsLimitedMember whf:CennoxHoldingsLimitedMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.00% 6.00% 6.00% 6.00% 6.00%  
Interest Rate 7.69% 7.00% 7.69% 7.69% 7.00%  
Acquisition Date Jul. 16, 2021 Jul. 16, 2021        
Maturity Date May 04, 2026 May 04, 2026 May 04, 2026 May 04, 2026 May 04, 2026  
Investments, amortized cost $ 3,868 $ 3,889        
Investments, at fair value 3,140 3,877        
Principal/Share Amount $ 2,844 $ 2,866        
Investment, Identifier [Axis]: Cennox Holdings Limited, First lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 5/4/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:CennoxHoldingsLimitedMember whf:CennoxHoldingsLimitedMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.25% 6.00% 6.25% 6.25% 6.00%  
Interest Rate 9.78% 7.00% 9.78% 9.78% 7.00%  
Acquisition Date Jun. 28, 2022 Jul. 16, 2021        
Maturity Date May 04, 2026 May 04, 2026 May 04, 2026 May 04, 2026 May 04, 2026  
Investments, amortized cost $ 9,845 $ 1,173        
Investments, at fair value 9,205 1,169        
Principal/Share Amount $ 9,482 $ 864        
Investment, Identifier [Axis]: Cennox, Inc., First Lien Secured Delayed Draw Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 5/4/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:CennoxInc.Member        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredDelayedDrawLoanMember     whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   IT Consulting And Other Services     IT Consulting And Other Services  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Jun. 28, 2021        
Maturity Date   May 04, 2026     May 04, 2026  
Investments, amortized cost   $ 8,755        
Investments, at fair value   8,915        
Principal/Share Amount   $ 8,915        
Investment, Identifier [Axis]: Cennox, Inc., First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 5/4/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:CennoxHoldingsLimitedMember whf:CennoxInc.Member        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.00% 6.00% 6.00% 6.00% 6.00%  
Interest Rate 8.03% 7.00% 8.03% 8.03% 7.00%  
Acquisition Date Jul. 16, 2021 Jun. 28, 2021        
Maturity Date May 04, 2026 May 04, 2026 May 04, 2026 May 04, 2026 May 04, 2026  
Investments, amortized cost $ 680 $ 551        
Investments, at fair value 502 569        
Principal/Share Amount $ 450 $ 561        
Investment, Identifier [Axis]: Cennox, Inc., First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 5/4/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:CennoxInc.Member        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   IT Consulting And Other Services     IT Consulting And Other Services  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Jun. 28, 2021        
Maturity Date   May 04, 2026     May 04, 2026  
Investments, amortized cost   $ 8,365        
Investments, at fair value   8,438        
Principal/Share Amount   $ 8,525        
Investment, Identifier [Axis]: Claridge Products and Equipment, LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:ClaridgeProductsandEquipmentLLCMember whf:ClaridgeProductsandEquipmentLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Construction Materials Construction Materials Construction Materials Construction Materials Construction Materials  
Investment, Variable Interest Rate, Type [Extensible Enumeration] us-gaap:BaseRateMember us-gaap:PrimeRateMember us-gaap:BaseRateMember us-gaap:BaseRateMember us-gaap:PrimeRateMember  
Floor 1.00% 3.25% 1.00% 1.00% 3.25%  
Spread Above Index 5.72% 5.50% 5.72% 5.72% 5.50%  
Interest Rate 11.84% 8.75% 11.84% 11.84% 8.75%  
Acquisition Date Dec. 30, 2020 Dec. 30, 2020        
Maturity Date Dec. 29, 2025 Dec. 29, 2025 Dec. 29, 2025 Dec. 29, 2025 Dec. 29, 2025  
Investments, amortized cost $ 918 $ 207        
Investments, at fair value $ 888 $ 204        
Percent of net assets 0.26% 0.06% 0.26% 0.26% 0.06%  
Principal/Share Amount $ 926 $ 211        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Claridge Products and Equipment, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:ClaridgeProductsandEquipmentLLCMember whf:ClaridgeProductsandEquipmentLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Construction Materials Construction Materials Construction Materials Construction Materials Construction Materials  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 10.17% 7.50% 10.17% 10.17% 7.50%  
Acquisition Date Dec. 30, 2020 Dec. 30, 2020        
Maturity Date Dec. 29, 2025 Dec. 29, 2025 Dec. 29, 2025 Dec. 29, 2025 Dec. 29, 2025  
Investments, amortized cost $ 7,484 $ 7,518        
Investments, at fair value $ 7,280 $ 7,469        
Percent of net assets 2.11% 2.14% 2.11% 2.11% 2.14%  
Principal/Share Amount $ 7,582 $ 7,640        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: CleanChoice Energy, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:CleanChoiceEnergyIncMember whf:CleanChoiceEnergyIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Electric Utilities Electric Utilities Electric Utilities Electric Utilities Electric Utilities  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.25% 7.25% 7.25% 7.25% 7.25%  
Interest Rate 9.76% 8.25% 9.76% 9.76% 8.25%  
Acquisition Date Oct. 12, 2021 Oct. 12, 2021        
Maturity Date Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026  
Investments, amortized cost $ 10,331 $ 10,299        
Investments, at fair value $ 10,408 $ 10,296        
Percent of net assets 3.03% 2.94% 3.03% 3.03% 2.94%  
Principal/Share Amount $ 10,500 $ 10,500        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Coastal Television Broadcasting Group LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:CoastalTelevisionBroadcastingGroupLLCMember whf:CoastalTelevisionBroadcastingGroupLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Broadcasting Broadcasting Broadcasting Broadcasting Broadcasting  
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] whf:SecuredOvernightFinancingRateMember Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] whf:SecuredOvernightFinancingRateMember  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 9.48% 7.50% 9.48% 9.48% 7.50%  
Acquisition Date Dec. 30, 2021 Dec. 30, 2021        
Maturity Date Dec. 30, 2026 Dec. 30, 2026 Dec. 30, 2026 Dec. 30, 2026 Dec. 30, 2026  
Investments, at fair value $ (4)          
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Coastal Television Broadcasting Group LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:CoastalTelevisionBroadcastingGroupLLCMember whf:CoastalTelevisionBroadcastingGroupLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Broadcasting Broadcasting Broadcasting Broadcasting Broadcasting  
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] whf:SecuredOvernightFinancingRateMember Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] whf:SecuredOvernightFinancingRateMember  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 9.48% 7.50% 9.48% 9.48% 7.50%  
Acquisition Date Dec. 30, 2021 Dec. 30, 2021        
Maturity Date Dec. 30, 2026 Dec. 30, 2026 Dec. 30, 2026 Dec. 30, 2026 Dec. 30, 2026  
Investments, amortized cost $ 8,052 $ 8,027        
Investments, at fair value $ 7,946 $ 8,027        
Percent of net assets 2.32% 2.30% 2.32% 2.32% 2.30%  
Principal/Share Amount $ 8,191 $ 8,191        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Crown Brands LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:CrownBrandsLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Distributors   Distributors Distributors    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 10.00%   10.00% 10.00%    
Interest Rate 12.95%   12.95% 12.95%    
Acquisition Date Apr. 22, 2022          
Maturity Date Dec. 09, 2025   Dec. 09, 2025 Dec. 09, 2025    
Investments, amortized cost $ 357          
Investments, at fair value $ 344          
Percent of net assets 0.10%   0.10% 0.10%    
Principal/Share Amount $ 357          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Crown Brands LLC Second Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:CrownBrandsLLCMember whf:CrownBrandsLLCMember        
Investment, Type [Extensible Enumeration] whf:SecondLienSecuredDelayedDrawLoanMember whf:SecondLienSecuredDelayedDrawLoanMember whf:SecondLienSecuredDelayedDrawLoanMember whf:SecondLienSecuredDelayedDrawLoanMember whf:SecondLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Distributors Distributors Distributors Distributors Distributors  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.50% 1.50% 1.50% 1.50% 1.50%  
Spread Above Index 10.50% 10.50% 10.50% 10.50% 10.50%  
Interest Rate 13.74% 12.00% 13.74% 13.74% 12.00%  
Acquisition Date Dec. 15, 2020 Dec. 15, 2020        
Maturity Date Jan. 08, 2026 Jan. 08, 2026 Jan. 08, 2026 Jan. 08, 2026 Jan. 08, 2026  
Investments, amortized cost $ 651 $ 650        
Investments, at fair value $ 423 $ 520        
Percent of net assets 0.12% 0.15% 0.12% 0.12% 0.15%  
Principal/Share Amount $ 651 $ 650        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Interest Issuer May Pay In Cash Or Cash And PIK. 2.00%          
Investment, Identifier [Axis]: Crown Brands LLC Second Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:CrownBrandsLLCMember whf:CrownBrandsLLCMember        
Investment, Type [Extensible Enumeration] whf:SecondLienSecuredTermLoanMember whf:SecondLienSecuredTermLoanMember whf:SecondLienSecuredTermLoanMember whf:SecondLienSecuredTermLoanMember whf:SecondLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Distributors Distributors Distributors Distributors Distributors  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.50% 1.50% 1.50% 1.50% 1.50%  
Spread Above Index 10.50% 10.50% 10.50% 10.50% 10.50%  
Interest Rate 13.62% 12.00% 13.62% 13.62% 12.00%  
Acquisition Date Dec. 15, 2020 Dec. 15, 2020        
Maturity Date Jan. 08, 2026 Jan. 08, 2026 Jan. 08, 2026 Jan. 08, 2026 Jan. 08, 2026  
Investments, amortized cost $ 4,318 $ 4,299        
Investments, at fair value $ 2,851 $ 3,505        
Percent of net assets 0.83% 1.00% 0.83% 0.83% 1.00%  
Principal/Share Amount $ 4,386 $ 4,382        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Interest Issuer May Pay In Cash Or Cash And PIK. 2.00%          
Investment, Identifier [Axis]: DCA Investment Holding, LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:DCAInvestmentHoldingLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredDelayedDrawLoanMember     whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Health Care Services     Health Care Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   0.75%     0.75%  
Spread Above Index   6.25%     6.25%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Mar. 12, 2021        
Maturity Date   Mar. 12, 2027     Mar. 12, 2027  
Investments, amortized cost   $ 672        
Investments, at fair value   $ 688        
Percent of net assets   0.20%     0.20%  
Principal/Share Amount   $ 678        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: DCA Investment Holding, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:DCAInvestmentHoldingLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Health Care Services     Health Care Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   0.75%     0.75%  
Spread Above Index   6.25%     6.25%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Mar. 12, 2021        
Maturity Date   Mar. 12, 2027     Mar. 12, 2027  
Investments, amortized cost   $ 6,933        
Investments, at fair value   $ 6,988        
Percent of net assets   2.00%     2.00%  
Principal/Share Amount   $ 7,025        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Drew Foam Companies Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:DrewFoamCompaniesIncMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Building Products     Building Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Nov. 05, 2020        
Maturity Date   Nov. 05, 2025     Nov. 05, 2025  
Investments, amortized cost   $ 7,094        
Investments, at fair value   $ 7,183        
Percent of net assets   2.05%     2.05%  
Principal/Share Amount   $ 7,207        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Drew Foam Companies Inc, First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 11/5/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:DrewFoamCompaniesIncMember whf:DrewFoamCompaniesIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Building Products Building Products Building Products Building Products Building Products  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.00% 6.00% 6.00% 6.00% 6.00%  
Interest Rate 9.67% 7.00% 9.67% 9.67% 7.00%  
Acquisition Date Nov. 09, 2020 Nov. 09, 2020        
Maturity Date Nov. 05, 2025 Nov. 05, 2025 Nov. 05, 2025 Nov. 05, 2025 Nov. 05, 2025  
Investments, amortized cost $ 14,125 $ 7,096        
Investments, at fair value 14,305 7,183        
Principal/Share Amount $ 14,305 $ 7,207        
Investment, Identifier [Axis]: E-Phoenix Acquisition Co. Inc., First Lien Secured Term Loan, Floor 1.00%, Spread L plus 5.75%, Rate 6.75%, Due 6/23/2027            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:E-PhoenixAcquisitionCo.Inc.Member whf:E-PhoenixAcquisitionCo.Inc.Member        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Research & Consulting Services Research & Consulting Services Research & Consulting Services Research & Consulting Services Research & Consulting Services  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 5.75% 5.75% 5.75% 5.75% 5.75%  
Interest Rate 9.42% 6.75% 9.42% 9.42% 6.75%  
Acquisition Date Jul. 15, 2021 Jul. 15, 2021        
Maturity Date Jun. 23, 2027 Jun. 23, 2027 Jun. 23, 2027 Jun. 23, 2027 Jun. 23, 2027  
Investments, amortized cost $ 8,799 $ 8,852        
Investments, at fair value 8,832 8,901        
Principal/Share Amount $ 8,888 $ 8,955        
Investment, Identifier [Axis]: Eddy Acquisitions, LLC Preferred Units            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:EddyAcquisitionsLLCMember whf:EddyAcquisitionsLLCMember        
Investment, Type [Extensible Enumeration] whf:PreferredUnitsMember whf:PreferredUnitsMember whf:PreferredUnitsMember whf:PreferredUnitsMember whf:PreferredUnitsMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Education Services Education Services Education Services Education Services Education Services  
Spread Above Index 12.00% 12.00% 12.00% 12.00% 12.00%  
Interest Rate 12.00% 12.00% 12.00% 12.00% 12.00%  
Acquisition Date Sep. 15, 2021 Sep. 15, 2021        
Investments, amortized cost $ 167 $ 167        
Investments, at fair value $ 118 $ 167        
Percent of net assets 0.03% 0.05% 0.03% 0.03% 0.05%  
Principal/Share Amount $ 167 $ 167        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false true false false true  
Investment, Identifier [Axis]: Education Networks of America, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:EducationNetworksofAmericaIncMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Application Software     Application Software  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   5.50%     5.50%  
Interest Rate   6.50%     6.50%  
Acquisition Date   Nov. 30, 2021        
Maturity Date   Oct. 27, 2026     Oct. 27, 2026  
Investments, amortized cost   $ 4,511        
Investments, at fair value   $ 4,508        
Percent of net assets   1.29%     1.29%  
Principal/Share Amount   $ 4,719        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: EducationDynamics, LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:EducationDynamicsLLCMember whf:EducationDynamicsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Education Services Education Services Education Services Education Services Education Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.00% 7.00% 7.00% 7.00% 7.00%  
Interest Rate 10.05% 8.00% 10.05% 10.05% 8.00%  
Acquisition Date Sep. 15, 2021 Sep. 15, 2021        
Maturity Date Sep. 15, 2026 Sep. 15, 2026 Sep. 15, 2026 Sep. 15, 2026 Sep. 15, 2026  
Investments, at fair value $ (3)          
PIK interest rate 0.50% 0.50% 0.50% 0.50% 0.50%  
Investment, interest rate, paid in cash 9.55% 7.50% 9.55% 9.55% 7.50%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: EducationDynamics, LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:EducationDynamicsLLCMember whf:EducationDynamicsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Education Services Education Services Education Services Education Services Education Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] us-gaap:PrimeRateMember London Interbank Offered Rate (LIBOR) [Member] us-gaap:PrimeRateMember us-gaap:PrimeRateMember London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 5.50% 7.00% 5.50% 5.50% 7.00%  
Interest Rate 11.75% 8.00% 11.75% 11.75% 8.00%  
Acquisition Date Sep. 15, 2021 Sep. 15, 2021        
Maturity Date Sep. 15, 2026 Sep. 15, 2026 Sep. 15, 2026 Sep. 15, 2026 Sep. 15, 2026  
Investments, amortized cost $ 236          
Investments, at fair value $ 234          
Percent of net assets 0.07%   0.07% 0.07%    
Principal/Share Amount $ 240          
PIK interest rate   0.50%     0.50%  
Investment, interest rate, paid in cash   7.50%     7.50%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: EducationDynamics, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:EducationDynamicsLLCMember whf:EducationDynamicsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Education Services Education Services Education Services Education Services Education Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.00% 7.00% 7.00% 7.00% 7.00%  
Interest Rate 10.05% 8.00% 10.05% 10.05% 8.00%  
Acquisition Date Sep. 15, 2021 Sep. 15, 2021        
Maturity Date Sep. 15, 2026 Sep. 15, 2026 Sep. 15, 2026 Sep. 15, 2026 Sep. 15, 2026  
Investments, amortized cost $ 12,912 $ 13,068        
Investments, at fair value $ 12,887 $ 13,064        
Percent of net assets 3.75% 3.74% 3.75% 3.75% 3.74%  
Principal/Share Amount $ 13,119 $ 13,318        
PIK interest rate 0.50% 0.50% 0.50% 0.50% 0.50%  
Investment, interest rate, paid in cash 9.55% 7.50% 9.55% 9.55% 7.50%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: EducationDynamics, LLC Subordinated Unsecured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:EducationDynamicsLLCMember whf:EducationDynamicsLLCMember        
Investment, Type [Extensible Enumeration] whf:SubordinatedUnsecuredTermLoanMember whf:SubordinatedUnsecuredTermLoanMember whf:SubordinatedUnsecuredTermLoanMember whf:SubordinatedUnsecuredTermLoanMember whf:SubordinatedUnsecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Education Services Education Services Education Services Education Services Education Services  
Spread Above Index 4.00% 4.00% 4.00% 4.00% 4.00%  
Interest Rate 4.00% 4.00% 4.00% 4.00% 4.00%  
Acquisition Date Sep. 15, 2021 Sep. 15, 2021        
Maturity Date Mar. 15, 2027 Mar. 15, 2027 Mar. 15, 2027 Mar. 15, 2027 Mar. 15, 2027  
Investments, amortized cost $ 167 $ 167        
Investments, at fair value $ 167 $ 167        
Percent of net assets 0.05% 0.05% 0.05% 0.05% 0.05%  
Principal/Share Amount $ 167 $ 167        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Empire Office, Inc First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:EmpireOfficeIncMember whf:EmpireOfficeIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Office Services & Supplies Office Services & Supplies Office Services & Supplies Office Services & Supplies Office Services & Supplies  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.50% 1.50% 1.50% 1.50% 1.50%  
Spread Above Index 6.50% 6.75% 6.50% 6.50% 6.75%  
Interest Rate 9.62% 8.25% 9.62% 9.62% 8.25%  
Acquisition Date Aug. 17, 2021 Aug. 17, 2021        
Maturity Date Apr. 12, 2024 Apr. 12, 2024 Apr. 12, 2024 Apr. 12, 2024 Apr. 12, 2024  
Investments, amortized cost $ 4,792          
Investments, at fair value $ 4,820 $ 7        
Percent of net assets 1.41%   1.41% 1.41%    
Principal/Share Amount $ 4,864          
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Empire Office, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:EmpireOfficeIncMember whf:EmpireOfficeIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Office Services & Supplies Office Services & Supplies Office Services & Supplies Office Services & Supplies Office Services & Supplies  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.50% 1.50% 1.50% 1.50% 1.50%  
Spread Above Index 6.50% 6.75% 6.50% 6.50% 6.75%  
Interest Rate 9.62% 8.25% 9.62% 9.62% 8.25%  
Acquisition Date Apr. 12, 2019 Apr. 12, 2019        
Maturity Date Apr. 12, 2024 Apr. 12, 2024 Apr. 12, 2024 Apr. 12, 2024 Apr. 12, 2024  
Investments, amortized cost $ 11,923 $ 12,507        
Investments, at fair value $ 11,910 $ 12,589        
Percent of net assets 3.47% 3.60% 3.47% 3.47% 3.60%  
Principal/Share Amount $ 12,019 $ 12,656        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Epiphany Business Services, LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:EpiphanyBusinessServicesLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredDelayedDrawLoanMember     whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Health Care Facilities     Health Care Facilities  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   7.50%     7.50%  
Interest Rate   8.50%     8.50%  
Acquisition Date   Dec. 04, 2020        
Maturity Date   Jun. 22, 2023     Jun. 22, 2023  
Investments, amortized cost   $ 3,008        
Investments, at fair value   $ 3,027        
Percent of net assets   0.87%     0.87%  
Principal/Share Amount   $ 3,052        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Epiphany Business Services, LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:EpiphanyBusinessServicesLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Health Care Facilities     Health Care Facilities  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   7.50%     7.50%  
Interest Rate   8.50%     8.50%  
Acquisition Date   Dec. 04, 2020        
Maturity Date   Jun. 22, 2023     Jun. 22, 2023  
Investments, at fair value   $ 3        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Epiphany Business Services, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:EpiphanyBusinessServicesLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Health Care Facilities     Health Care Facilities  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   7.50%     7.50%  
Interest Rate   8.50%     8.50%  
Acquisition Date   Dec. 04, 2020        
Maturity Date   Jun. 22, 2023     Jun. 22, 2023  
Investments, amortized cost   $ 4,214        
Investments, at fair value   $ 4,235        
Percent of net assets   1.21%     1.21%  
Principal/Share Amount   $ 4,278        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Escalon Services Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:EscalonServicesIncMember whf:EscalonServicesIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 10.31% 13.50% 10.31% 10.31% 13.50%  
Interest Rate 13.22% 14.50% 13.22% 13.22% 14.50%  
Acquisition Date Dec. 04, 2020 Dec. 04, 2020        
Maturity Date Dec. 04, 2025 Dec. 04, 2025 Dec. 04, 2025 Dec. 04, 2025 Dec. 04, 2025  
Investments, amortized cost $ 16,599 $ 7,490        
Investments, at fair value $ 17,797 $ 8,046        
Percent of net assets 5.19% 2.30% 5.19% 5.19% 2.30%  
Principal/Share Amount $ 17,278 $ 8,046        
PIK interest rate 1.50%   1.50% 1.50%    
Investment, interest rate, paid in cash 11.72% 13.00% 11.72% 11.72% 13.00%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Escalon Services Inc Warrants            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:EscalonServicesIncMember whf:EscalonServicesIncMember        
Investment, Type [Extensible Enumeration] Warrant [Member] Warrant [Member] Warrant [Member] Warrant [Member] Warrant [Member]  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services  
Acquisition Date Dec. 04, 2020 Dec. 04, 2020        
Investments, amortized cost $ 476 $ 476        
Investments, at fair value $ 2,368 $ 893        
Percent of net assets 0.69% 0.26% 0.69% 0.69% 0.26%  
Principal/Share Amount $ 709 $ 709        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: FR Flow Control CB LLC, First Lien Secured Term Loan B, Floor 1.00%, Spread L plus 5.50%, Rate 6.50%, Due 6/28/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:FRFlowControlCBLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanBMember     whf:FirstLienSecuredTermLoanBMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Industrial Machinery     Industrial Machinery  
Floor   1.00%     1.00%  
Spread Above Index   5.50%     5.50%  
Interest Rate   6.50%     6.50%  
Acquisition Date   Jul. 19, 2019        
Maturity Date   Jun. 28, 2026     Jun. 28, 2026  
Investments, amortized cost   $ 6,727        
Investments, at fair value   6,815        
Principal/Share Amount   $ 6,815        
Investment, Identifier [Axis]: Flexitallic Group SAS First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:FlexitallicGroupSASMember whf:FlexitallicGroupSASMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Commodity Chemicals Commodity Chemicals Commodity Chemicals Commodity Chemicals Commodity Chemicals  
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.50% 7.50% 7.50% 7.50% 7.50%  
Interest Rate 11.20% 8.50% 11.20% 11.20% 8.50%  
Acquisition Date Oct. 28, 2019 Oct. 28, 2019        
Maturity Date Oct. 29, 2026 Oct. 29, 2026 Oct. 29, 2026 Oct. 29, 2026 Oct. 29, 2026  
Investments, amortized cost $ 15,777 $ 15,047        
Investments, at fair value $ 16,003 $ 15,172        
Percent of net assets 4.67% 4.34% 4.67% 4.67% 4.34%  
Principal/Share Amount $ 16,371 $ 15,722        
PIK interest rate 0.50% 0.50% 0.50% 0.50% 0.50%  
Investment, interest rate, paid in cash 10.70% 8.00% 10.70% 10.70% 8.00%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Future Payment Technologies, LP First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:FuturePaymentTechnologiesLPMember whf:FuturePaymentTechnologiesLPMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 8.25% 8.25% 8.25% 8.25% 8.25%  
Interest Rate 10.81% 9.25% 10.81% 10.81% 9.25%  
Acquisition Date Dec. 23, 2016 Dec. 23, 2016        
Maturity Date Jun. 07, 2024 Jun. 07, 2024 Jun. 07, 2024 Jun. 07, 2024 Jun. 07, 2024  
Investments, amortized cost $ 23,074 $ 23,811        
Investments, at fair value $ 23,222 $ 23,925        
Percent of net assets 6.77% 6.84% 6.77% 6.77% 6.84%  
Principal/Share Amount $ 23,222 $ 24,000        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Geo Logic Systems Ltd., First Lien Secured Revolving Loan, Floor 1.00%, Spread C plus 6.50%, Rate 7.50%, Due 12/19/2024            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:GeoLogicSystemsLtdMember whf:GeoLogicSystemsLtdMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 10.67% 7.50% 10.67% 10.67% 7.50%  
Acquisition Date Jan. 22, 2020 Jan. 22, 2020        
Maturity Date Dec. 19, 2024 Dec. 19, 2024 Dec. 19, 2024 Dec. 19, 2024 Dec. 19, 2024  
Investments, at fair value $ 2 $ 4        
Investment, Identifier [Axis]: Geo Logic Systems Ltd., First Lien Secured Term Loan, Floor 1.00%, Spread C plus 6.50%, Rate 7.50%, Due 12/19/2024            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:GeoLogicSystemsLtdMember whf:GeoLogicSystemsLtdMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 10.67% 7.50% 10.67% 10.67% 7.50%  
Acquisition Date Jan. 22, 2020 Jan. 22, 2020        
Maturity Date Dec. 19, 2024 Dec. 19, 2024 Dec. 19, 2024 Dec. 19, 2024 Dec. 19, 2024  
Investments, amortized cost $ 15,497 $ 15,766        
Investments, at fair value 14,505 16,156        
Principal/Share Amount $ 20,225 $ 20,632        
Investment, Identifier [Axis]: Grupo HIMA San Pablo, Inc Amended Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:GrupoHIMASanPabloIncMember        
Investment, Type [Extensible Enumeration]   whf:AmendedTermLoanMember     whf:AmendedTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Health Care Facilities     Health Care Facilities  
Floor   1.50%     1.50%  
Spread Above Index   9.00%     9.00%  
Interest Rate   10.50%     10.50%  
Acquisition Date   Nov. 24, 2021        
Maturity Date   Nov. 24, 2023     Nov. 24, 2023  
Investments, amortized cost   $ 1,704        
Investments, at fair value   $ 1,708        
Percent of net assets   0.49%     0.49%  
Principal/Share Amount   $ 1,708        
PIK interest rate   10.50%     10.50%  
Investment, interest rate, paid in cash   0.00%     0.00%  
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Grupo HIMA San Pablo, Inc First Lien Secured Term Loan A            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:GrupoHIMASanPabloIncMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanAMember     whf:FirstLienSecuredTermLoanAMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Health Care Facilities     Health Care Facilities  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Spread Above Index   9.00%     9.00%  
Interest Rate   9.13%     9.13%  
Acquisition Date   May 05, 2019        
Maturity Date   Apr. 30, 2019     Apr. 30, 2019  
Investments, amortized cost   $ 3,476        
Investments, at fair value   $ 1,169        
Percent of net assets   0.33%     0.33%  
Principal/Share Amount   $ 3,476        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Grupo HIMA San Pablo, Inc First Lien Secured Term Loan B            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:GrupoHIMASanPabloIncMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanBMember     whf:FirstLienSecuredTermLoanBMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Health Care Facilities     Health Care Facilities  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.50%     1.50%  
Spread Above Index   9.00%     9.00%  
Interest Rate   10.50%     10.50%  
Acquisition Date   Feb. 01, 2013        
Maturity Date   Apr. 30, 2019     Apr. 30, 2019  
Investments, amortized cost   $ 12,185        
Investments, at fair value   $ 4,097        
Percent of net assets   1.17%     1.17%  
Principal/Share Amount   $ 12,185        
PIK interest rate   2.00%     2.00%  
Investment, interest rate, paid in cash   13.75%     13.75%  
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Grupo HIMA San Pablo, Inc Second Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:GrupoHIMASanPabloIncMember        
Investment, Type [Extensible Enumeration]   whf:SecondLienSecuredTermLoanMember     whf:SecondLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Health Care Facilities     Health Care Facilities  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Spread Above Index   15.75%     15.75%  
Interest Rate   15.75%     15.75%  
Acquisition Date   Feb. 01, 2013        
Maturity Date   Jul. 31, 2018     Jul. 31, 2018  
Investments, amortized cost   $ 1,024        
Principal/Share Amount   $ 1,028        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Grupo HIMA San Pablo, Inc Superpriority Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:GrupoHIMASanPabloIncMember        
Investment, Type [Extensible Enumeration]   whf:SuperpriorityDelayedDrawLoanMember     whf:SuperpriorityDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Health Care Facilities     Health Care Facilities  
Spread Above Index   12.00%     12.00%  
Interest Rate   12.00%     12.00%  
Acquisition Date   Nov. 24, 2021        
Maturity Date   Nov. 24, 2023     Nov. 24, 2023  
Investments, amortized cost   $ 568        
Investments, at fair value   $ 568        
Percent of net assets   0.16%     0.16%  
Principal/Share Amount   $ 568        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: HC Salon Holdings, Inc First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:HCSalonHoldingsIncMember whf:HCSalonHoldingsIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 8.00% 8.00% 8.00% 8.00% 8.00%  
Interest Rate 11.67% 9.00% 11.67% 11.67% 9.00%  
Acquisition Date Sep. 30, 2021 Sep. 30, 2021        
Maturity Date Sep. 30, 2026 Sep. 30, 2026 Sep. 30, 2026 Sep. 30, 2026 Sep. 30, 2026  
Investments, at fair value $ 11          
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: HC Salon Holdings, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:HCSalonHoldingsIncMember whf:HCSalonHoldingsIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 8.00% 8.00% 8.00% 8.00% 8.00%  
Interest Rate 11.67% 9.00% 11.67% 11.67% 9.00%  
Acquisition Date Sep. 30, 2021 Sep. 30, 2021        
Maturity Date Sep. 30, 2026 Sep. 30, 2026 Sep. 30, 2026 Sep. 30, 2026 Sep. 30, 2026  
Investments, amortized cost $ 11,365 $ 11,417        
Investments, at fair value $ 11,550 $ 11,416        
Percent of net assets 3.37% 3.26% 3.37% 3.37% 3.26%  
Principal/Share Amount $ 11,550 $ 11,638        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: HRG Management, LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:HRGManagementLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredDelayedDrawLoanMember     whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Real Estate Operating Companies     Real Estate Operating Companies  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.25%     6.25%  
Interest Rate   7.25%     7.25%  
Acquisition Date   Oct. 19, 2021        
Maturity Date   Oct. 19, 2026     Oct. 19, 2026  
Investments, amortized cost   $ 644        
Investments, at fair value   $ 651        
Percent of net assets   0.19%     0.19%  
Principal/Share Amount   $ 653        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: HRG Management, LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:HRGManagementLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Real Estate Operating Companies     Real Estate Operating Companies  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.25%     6.25%  
Interest Rate   7.25%     7.25%  
Acquisition Date   Oct. 19, 2021        
Maturity Date   Oct. 19, 2026     Oct. 19, 2026  
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: HRG Management, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:HRGManagementLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Real Estate Operating Companies     Real Estate Operating Companies  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.25%     6.25%  
Interest Rate   7.25%     7.25%  
Acquisition Date   Oct. 19, 2021        
Maturity Date   Oct. 19, 2026     Oct. 19, 2026  
Investments, amortized cost   $ 4,781        
Investments, at fair value   $ 4,780        
Percent of net assets   1.37%     1.37%  
Principal/Share Amount   $ 4,875        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: HRG Management, LLC, First Lien Secured Delayed Draw Loan, Floor 1.00%, Spread L plus 6.25%, Rate 7.29%, Due 10/19/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] HRG Management, LLC HomeRiver Group, LLC [Member]          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember   whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Real Estate Operating Companies   Real Estate Operating Companies Real Estate Operating Companies    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.25%   6.25% 6.25%    
Interest Rate 8.99%   8.99% 8.99%    
Acquisition Date Feb. 18, 2022          
Maturity Date Oct. 19, 2026   Oct. 19, 2026 Oct. 19, 2026    
Investments, amortized cost $ 1,257          
Investments, at fair value 1,242          
Principal/Share Amount $ 1,273          
Investment, Identifier [Axis]: HRG Management, LLC, First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.25%, Rate 7.29%, Due 10/19/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] HRG Management, LLC HomeRiver Group, LLC [Member]          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Real Estate Operating Companies   Real Estate Operating Companies Real Estate Operating Companies    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.25%   6.25% 6.25%    
Interest Rate 8.99%   8.99% 8.99%    
Acquisition Date Feb. 18, 2022          
Maturity Date Oct. 19, 2026   Oct. 19, 2026 Oct. 19, 2026    
Investments, at fair value $ (4)          
Investment, Identifier [Axis]: HRG Management, LLC, First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.25%, Rate 7.25%, Due 10/19/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   HRG Management, LLC HomeRiver Group, LLC [Member]        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Real Estate Operating Companies     Real Estate Operating Companies  
Floor   1.00%     1.00%  
Spread Above Index   6.25%     6.25%  
Interest Rate   7.25%     7.25%  
Acquisition Date   Dec. 28, 2021        
Maturity Date   Oct. 19, 2026     Oct. 19, 2026  
Investments, amortized cost   $ 4,781        
Investments, at fair value   4,780        
Principal/Share Amount   $ 4,875        
Investment, Identifier [Axis]: HRG Management, LLC, First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.25%, Rate 7.29%, Due 10/19/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] HRG Management, LLC HomeRiver Group, LLC [Member]          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Real Estate Operating Companies   Real Estate Operating Companies Real Estate Operating Companies    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.25%   6.25% 6.25%    
Interest Rate 8.99%   8.99% 8.99%    
Acquisition Date Dec. 28, 2021          
Maturity Date Oct. 19, 2026   Oct. 19, 2026 Oct. 19, 2026    
Investments, amortized cost $ 9,520          
Investments, at fair value 9,484          
Principal/Share Amount $ 9,677          
Investment, Identifier [Axis]: Hollander Intermediate LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:HollanderIntermediateLlcMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Home Furnishings   Home Furnishings Home Furnishings    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 2.00%   2.00% 2.00%    
Spread Above Index 8.75%   8.75% 8.75%    
Interest Rate 11.79%   11.79% 11.79%    
Acquisition Date Sep. 19, 2022          
Maturity Date Sep. 21, 2026   Sep. 21, 2026 Sep. 21, 2026    
Investments, amortized cost $ 4,849          
Investments, at fair value $ 4,671          
Percent of net assets 1.36%   1.36% 1.36%    
Principal/Share Amount $ 4,891          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Honors Holdings, LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:HonorsHoldingsLLCMember whf:HonorsHoldingsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.46% 7.58% 7.46% 7.46% 7.58%  
Interest Rate 10.80% 8.58% 10.80% 10.80% 8.58%  
Acquisition Date Sep. 06, 2019 Sep. 06, 2019        
Maturity Date Sep. 06, 2024 Sep. 06, 2024 Sep. 06, 2024 Sep. 06, 2024 Sep. 06, 2024  
Investments, amortized cost $ 4,618 $ 4,611        
Investments, at fair value $ 4,603 $ 4,578        
Percent of net assets 1.34% 1.31% 1.34% 1.34% 1.31%  
Principal/Share Amount $ 4,649 $ 4,649        
PIK interest rate 0.50% 0.50% 0.50% 0.50% 0.50%  
Investment, interest rate, paid in cash 10.30% 8.08% 10.30% 10.30% 8.08%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Additional Interest For Senior Term Debt 3.50%          
Investment, Identifier [Axis]: Honors Holdings, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:HonorsHoldingsLLCMember whf:HonorsHoldingsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.56% 7.96% 7.56% 7.56% 7.96%  
Interest Rate 10.73% 8.96% 10.73% 10.73% 8.96%  
Acquisition Date Sep. 06, 2019 Sep. 06, 2019        
Maturity Date Sep. 06, 2024 Sep. 06, 2024 Sep. 06, 2024 Sep. 06, 2024 Sep. 06, 2024  
Investments, amortized cost $ 9,337 $ 9,315        
Investments, at fair value $ 9,346 $ 9,296        
Percent of net assets 2.72% 2.66% 2.72% 2.72% 2.66%  
Principal/Share Amount $ 9,440 $ 9,440        
PIK interest rate 0.50% 0.50% 0.50% 0.50% 0.50%  
Investment, interest rate, paid in cash 10.23% 8.46% 10.23% 10.23% 8.46%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Additional Interest For Senior Term Debt 3.50%          
Investment, Identifier [Axis]: I And I Sales Group, LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:IAndISalesGroupLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredDelayedDrawLoanMember     whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Advertising     Advertising  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Dec. 15, 2021        
Maturity Date   Dec. 15, 2026     Dec. 15, 2026  
Investments, amortized cost   $ 388        
Investments, at fair value   $ 388        
Percent of net assets   0.11%     0.11%  
Principal/Share Amount   $ 396        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: I And I Sales Group, LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:IAndISalesGroupLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Advertising     Advertising  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Dec. 15, 2021        
Maturity Date   Dec. 15, 2026     Dec. 15, 2026  
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: I And I Sales Group, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:IAndISalesGroupLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Advertising     Advertising  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Dec. 15, 2021        
Maturity Date   Dec. 15, 2026     Dec. 15, 2026  
Investments, amortized cost   $ 9,102        
Investments, at fair value   $ 9,100        
Percent of net assets   2.60%     2.60%  
Principal/Share Amount   $ 9,286        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: I&I Sales Group, LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:IAndISalesGroupLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember   whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Advertising   Advertising Advertising    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 5.75%   5.75% 5.75%    
Interest Rate 9.00%   9.00% 9.00%    
Acquisition Date Mar. 11, 2022          
Maturity Date Dec. 15, 2026   Dec. 15, 2026 Dec. 15, 2026    
Investments, amortized cost $ 702          
Investments, at fair value 707          
Principal/Share Amount $ 714          
Investment, Identifier [Axis]: I&I Sales Group, LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:IAndISalesGroupLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Advertising   Advertising Advertising    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 5.75%   5.75% 5.75%    
Interest Rate 9.42%   9.42% 9.42%    
Acquisition Date Feb. 18, 2022          
Maturity Date Dec. 15, 2026   Dec. 15, 2026 Dec. 15, 2026    
Investments, at fair value $ 1          
Investment, Identifier [Axis]: I&I Sales Group, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:IAndISalesGroupLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Advertising   Advertising Advertising    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 5.75%   5.75% 5.75%    
Interest Rate 9.42%   9.42% 9.42%    
Acquisition Date Feb. 18, 2022          
Maturity Date Dec. 15, 2026   Dec. 15, 2026 Dec. 15, 2026    
Investments, amortized cost $ 9,061          
Investments, at fair value 9,074          
Principal/Share Amount $ 9,216          
Investment, Identifier [Axis]: IDIG Parent, LLC, First Lien Secured Delayed Draw Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 12/15/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:IDIGParentLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredDelayedDrawLoanMember     whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Systems Software     Systems Software  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Sep. 21, 2021        
Maturity Date   Dec. 15, 2026     Dec. 15, 2026  
Investments, amortized cost   $ 1,397        
Investments, at fair value   1,411        
Principal/Share Amount   $ 1,411        
Investment, Identifier [Axis]: IDIG Parent, LLC, First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 12/15/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:IDIGParentLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Systems Software     Systems Software  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Jun. 25, 2021        
Maturity Date   Dec. 15, 2026     Dec. 15, 2026  
Investments, at fair value   $ 5        
Investment, Identifier [Axis]: IDIG Parent, LLC, First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 12/15/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:IDIGParentLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Systems Software     Systems Software  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Jun. 25, 2021        
Maturity Date   Dec. 15, 2026     Dec. 15, 2026  
Investments, amortized cost   $ 8,404        
Investments, at fair value   8,482        
Principal/Share Amount   $ 8,482        
Investment, Identifier [Axis]: ITS Buyer Inc First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:ITSBuyerIncMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Air Freight & Logistics     Air Freight & Logistics  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Dec. 22, 2021        
Maturity Date   Jun. 15, 2026     Jun. 15, 2026  
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: ITS Buyer Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:ITSBuyerIncMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Air Freight & Logistics     Air Freight & Logistics  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Dec. 22, 2021        
Maturity Date   Jun. 15, 2026     Jun. 15, 2026  
Investments, amortized cost   $ 3,540        
Investments, at fair value   $ 3,539        
Percent of net assets   1.01%     1.01%  
Principal/Share Amount   $ 3,612        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: ITS Buyer Inc. First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:ITSBuyerIncMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Air Freight & Logistics   Air Freight & Logistics Air Freight & Logistics    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.00%   6.00% 6.00%    
Interest Rate 9.67%   9.67% 9.67%    
Acquisition Date Feb. 17, 2022          
Maturity Date Jun. 15, 2026   Jun. 15, 2026 Jun. 15, 2026    
Investments, at fair value $ 4          
Investment, Identifier [Axis]: ITS Buyer Inc. First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:ITSBuyerIncMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Air Freight & Logistics   Air Freight & Logistics Air Freight & Logistics    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.00%   6.00% 6.00%    
Interest Rate 9.67%   9.67% 9.67%    
Acquisition Date Feb. 17, 2022          
Maturity Date Jun. 15, 2026   Jun. 15, 2026 Jun. 15, 2026    
Investments, amortized cost $ 3,531          
Investments, at fair value 3,553          
Principal/Share Amount $ 3,589          
Investment, Identifier [Axis]: ImageOne Industries, LLC Common A Units            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:ImageOneIndustriesLLCMember whf:ImageOneIndustriesLLCMember        
Investment, Type [Extensible Enumeration] whf:CommonAUnitsMember whf:CommonAUnitsMember whf:CommonAUnitsMember whf:CommonAUnitsMember whf:CommonAUnitsMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services  
Acquisition Date Sep. 20, 2019 Sep. 20, 2019        
Investments, amortized cost $ 2          
Investments, at fair value $ 84 $ 158        
Percent of net assets 0.02% 0.05% 0.02% 0.02% 0.05%  
Principal/Share Amount $ 227 $ 225        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: Industrial Specialty Services USA LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:IndustrialSpecialtyServicesUSALLCMember whf:IndustrialSpecialtyServicesUSALLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.25% 6.25% 6.25% 6.25% 6.25%  
Interest Rate 9.18% 7.25% 9.18% 9.18% 7.25%  
Acquisition Date Dec. 31, 2021 Dec. 31, 2021        
Maturity Date Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026  
Investments, amortized cost $ 871          
Investments, at fair value $ 861          
Percent of net assets 0.25%   0.25% 0.25%    
Principal/Share Amount $ 886          
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Industrial Specialty Services USA LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:IndustrialSpecialtyServicesUSALLCMember whf:IndustrialSpecialtyServicesUSALLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.25% 6.25% 6.25% 6.25% 6.25%  
Interest Rate 9.92% 7.25% 9.92% 9.92% 7.25%  
Acquisition Date Dec. 31, 2021 Dec. 31, 2021        
Maturity Date Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026  
Investments, amortized cost $ 11,715 $ 11,767        
Investments, at fair value $ 11,612 $ 11,767        
Percent of net assets 3.39% 3.36% 3.39% 3.39% 3.36%  
Principal/Share Amount $ 11,917 $ 12,007        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Inspired Beauty Brands, Inc First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:InspiredBeautyBrandsIncMember whf:InspiredBeautyBrandsIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Personal Products Personal Products Personal Products Personal Products Personal Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.00% 7.00% 7.00% 7.00% 7.00%  
Interest Rate 9.91% 8.00% 9.91% 9.91% 8.00%  
Acquisition Date Dec. 30, 2020 Dec. 30, 2020        
Maturity Date Dec. 30, 2025 Dec. 30, 2025 Dec. 30, 2025 Dec. 30, 2025 Dec. 30, 2025  
Investments, at fair value $ (6) $ 8        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Inspired Beauty Brands, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:InspiredBeautyBrandsIncMember whf:InspiredBeautyBrandsIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Personal Products Personal Products Personal Products Personal Products Personal Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.00% 7.00% 7.00% 7.00% 7.00%  
Interest Rate 9.91% 8.00% 9.91% 9.91% 8.00%  
Acquisition Date Dec. 30, 2020 Dec. 30, 2020        
Maturity Date Dec. 30, 2025 Dec. 30, 2025 Dec. 30, 2025 Dec. 30, 2025 Dec. 30, 2025  
Investments, amortized cost $ 11,650 $ 12,055        
Investments, at fair value $ 11,509 $ 12,252        
Percent of net assets 3.36% 3.50% 3.36% 3.36% 3.50%  
Principal/Share Amount $ 11,804 $ 12,252        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: IvyRehab Intermediate II, LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:IvyRehabIntermediateIILLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredDelayedDrawLoanMember     whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Health Care Services     Health Care Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.75%     6.75%  
Interest Rate   7.75%     7.75%  
Acquisition Date   Dec. 04, 2020        
Maturity Date   Dec. 04, 2024     Dec. 04, 2024  
Investments, amortized cost   $ 2,517        
Investments, at fair value   $ 2,534        
Percent of net assets   0.72%     0.72%  
Principal/Share Amount   $ 2,550        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: IvyRehab Intermediate II, LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:IvyRehabIntermediateIILLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Health Care Services     Health Care Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   us-gaap:PrimeRateMember     us-gaap:PrimeRateMember  
Floor   3.25%     3.25%  
Spread Above Index   5.75%     5.75%  
Interest Rate   9.00%     9.00%  
Acquisition Date   Dec. 04, 2020        
Maturity Date   Dec. 04, 2024     Dec. 04, 2024  
Investments, amortized cost   $ 139        
Investments, at fair value   $ 147        
Percent of net assets   0.04%     0.04%  
Principal/Share Amount   $ 142        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: IvyRehab Intermediate II, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:IvyRehabIntermediateIILLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Health Care Services     Health Care Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.75%     6.75%  
Interest Rate   7.75%     7.75%  
Acquisition Date   Dec. 04, 2020        
Maturity Date   Dec. 04, 2024     Dec. 04, 2024  
Investments, amortized cost   $ 17,121        
Investments, at fair value   $ 17,366        
Percent of net assets   4.97%     4.97%  
Principal/Share Amount   $ 17,366        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: JVMC Holdings Corp First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:JVMCHoldingsCorpMember whf:JVMCHoldingsCorpMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Investment Banking & Brokerage Investment Banking & Brokerage Investment Banking & Brokerage Investment Banking & Brokerage Investment Banking & Brokerage  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.75% 6.50% 6.50% 6.75%  
Interest Rate 9.62% 7.75% 9.62% 9.62% 7.75%  
Acquisition Date Feb. 28, 2019 Feb. 28, 2019        
Maturity Date Feb. 28, 2024 Feb. 28, 2024 Feb. 28, 2024 Feb. 28, 2024 Feb. 28, 2024  
Investments, amortized cost $ 12,043 $ 12,674        
Investments, at fair value $ 12,077 $ 12,729        
Percent of net assets 3.52% 3.64% 3.52% 3.52% 3.64%  
Principal/Share Amount $ 12,077 $ 12,729        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: JZ Capital Partners Ltd First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:JZCapitalPartnersLtdMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember   whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Asset Management & Custody Banks   Asset Management & Custody Banks Asset Management & Custody Banks    
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member]   London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 7.00%   7.00% 7.00%    
Interest Rate 9.77%   9.77% 9.77%    
Acquisition Date Jan. 26, 2022          
Maturity Date Jan. 26, 2027   Jan. 26, 2027 Jan. 26, 2027    
Investments, at fair value $ 22          
Percent of net assets 0.01%   0.01% 0.01%    
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: JZ Capital Partners Ltd First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:JZCapitalPartnersLtdMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Asset Management & Custody Banks   Asset Management & Custody Banks Asset Management & Custody Banks    
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member]   London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 7.00%   7.00% 7.00%    
Interest Rate 9.77%   9.77% 9.77%    
Acquisition Date Jan. 26, 2022          
Maturity Date Jan. 26, 2027   Jan. 26, 2027 Jan. 26, 2027    
Investments, amortized cost $ 10,108          
Investments, at fair value $ 10,147          
Percent of net assets 2.96%   2.96% 2.96%    
Principal/Share Amount $ 10,286          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Juniper Landscaping Holdings LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:JuniperLandscapingHoldingsLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredDelayedDrawLoanMember     whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Environmental & Facilities Services     Environmental & Facilities Services  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Dec. 29, 2021        
Maturity Date   Dec. 29, 2026     Dec. 29, 2026  
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Juniper Landscaping Holdings LLC First Lien Secured Delayed Draw Loan Due 12/29/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:JuniperLandscapingHoldingsLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember   whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services   Environmental & Facilities Services Environmental & Facilities Services    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.00%   6.00% 6.00%    
Interest Rate 9.67%   9.67% 9.67%    
Acquisition Date Mar. 01, 2022          
Maturity Date Dec. 29, 2026   Dec. 29, 2026 Dec. 29, 2026    
Investments, at fair value $ (3)          
Investment, Identifier [Axis]: Juniper Landscaping Holdings LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:JuniperLandscapingHoldingsLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Environmental & Facilities Services     Environmental & Facilities Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Dec. 29, 2021        
Maturity Date   Dec. 29, 2026     Dec. 29, 2026  
Investments, amortized cost   $ 586        
Investments, at fair value   $ 586        
Percent of net assets   0.17%     0.17%  
Principal/Share Amount   $ 597        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Juniper Landscaping Holdings LLC First Lien Secured Revolving Loan Due 12/29/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:JuniperLandscapingHoldingsLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services   Environmental & Facilities Services Environmental & Facilities Services    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.00%   6.00% 6.00%    
Interest Rate 9.67%   9.67% 9.67%    
Acquisition Date Mar. 01, 2022          
Maturity Date Dec. 29, 2026   Dec. 29, 2026 Dec. 29, 2026    
Investments, at fair value $ (1)          
Investment, Identifier [Axis]: Juniper Landscaping Holdings LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:JuniperLandscapingHoldingsLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Environmental & Facilities Services     Environmental & Facilities Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Dec. 29, 2021        
Maturity Date   Dec. 29, 2026     Dec. 29, 2026  
Investments, amortized cost   $ 11,221        
Investments, at fair value   $ 11,220        
Percent of net assets   3.21%     3.21%  
Principal/Share Amount   $ 11,420        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Juniper Landscaping Holdings LLC First Lien Secured Term Loan Due 12/29/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:JuniperLandscapingHoldingsLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services   Environmental & Facilities Services Environmental & Facilities Services    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.00%   6.00% 6.00%    
Interest Rate 9.67%   9.67% 9.67%    
Acquisition Date Mar. 01, 2022          
Maturity Date Dec. 29, 2026   Dec. 29, 2026 Dec. 29, 2026    
Investments, amortized cost $ 11,165          
Investments, at fair value 11,151          
Principal/Share Amount $ 11,334          
Investment, Identifier [Axis]: Keras Holdings, LLC Shares            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:KerasHoldingsLLCMember whf:KerasHoldingsLLCMember        
Investment, Type [Extensible Enumeration] Common Stock [Member] Common Stock [Member] Common Stock [Member] Common Stock [Member] Common Stock [Member]  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services  
Acquisition Date Dec. 31, 2020 Dec. 31, 2020        
Investments, amortized cost $ 496 $ 496        
Investments, at fair value $ 361 $ 496        
Percent of net assets 0.11% 0.14% 0.11% 0.11% 0.14%  
Principal/Share Amount $ 496 $ 496        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: LHS Borrower, LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:LHSBorrowerLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Building Products     Building Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.75%     6.75%  
Interest Rate   7.75%     7.75%  
Acquisition Date   Sep. 30, 2020        
Maturity Date   Sep. 30, 2025     Sep. 30, 2025  
Investments, at fair value   $ 4        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: LHS Borrower, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:LHSBorrowerLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Building Products     Building Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.75%     6.75%  
Interest Rate   7.75%     7.75%  
Acquisition Date   Sep. 30, 2020        
Maturity Date   Sep. 30, 2025     Sep. 30, 2025  
Investments, amortized cost   $ 9,346        
Investments, at fair value   $ 9,416        
Percent of net assets   2.69%     2.69%  
Principal/Share Amount   $ 9,506        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: LHS Borrower, LLC, First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.75%, Rate 7.75%, Due 9/30/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:LHSBorrowerLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Building Products     Building Products  
Floor   1.00%     1.00%  
Spread Above Index   6.75%     6.75%  
Interest Rate   7.75%     7.75%  
Acquisition Date   Oct. 09, 2020        
Maturity Date   Sep. 30, 2025     Sep. 30, 2025  
Investments, at fair value   $ 4        
Investment, Identifier [Axis]: LHS Borrower, LLC, First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.75%, Rate 7.75%, Due 9/30/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:LHSBorrowerLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Building Products     Building Products  
Floor   1.00%     1.00%  
Spread Above Index   6.75%     6.75%  
Interest Rate   7.75%     7.75%  
Acquisition Date   Oct. 09, 2020        
Maturity Date   Sep. 30, 2025     Sep. 30, 2025  
Investments, amortized cost   $ 9,345        
Investments, at fair value   9,416        
Principal/Share Amount   $ 9,506        
Investment, Identifier [Axis]: LINC Systems LLC First Lien Secured Revolving Loan Floor 1.00 Libor Plus 6.25 Rate Due 2242026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:LINCSystemsLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Trading Companies And Distributors [Member]   Trading Companies And Distributors [Member] Trading Companies And Distributors [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.25%   6.25% 6.25%    
Interest Rate 10.33%   10.33% 10.33%    
Acquisition Date Jun. 22, 2021          
Maturity Date Feb. 24, 2026   Feb. 24, 2026 Feb. 24, 2026    
Investments, at fair value $ 10          
Investment, Identifier [Axis]: LINC Systems LLC First Lien Secured Term Loan Floor 1.00 Libor Plus 6.25 Rate Due 2242026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:LINCSystemsLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Trading Companies And Distributors [Member]   Trading Companies And Distributors [Member] Trading Companies And Distributors [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.25%   6.25% 6.25%    
Interest Rate 10.33%   10.33% 10.33%    
Acquisition Date Jun. 22, 2021          
Maturity Date Feb. 24, 2026   Feb. 24, 2026 Feb. 24, 2026    
Investments, amortized cost $ 9,909          
Investments, at fair value 10,058          
Principal/Share Amount $ 10,058          
Investment, Identifier [Axis]: LINC Systems, LLC, First Lien Secured Delayed Draw Loan, Floor 1.50%, Spread L plus 6.25%, Rate 7.25%, Due 2/24/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:LINCSystemsLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Technology Hardware, Storage & Peripherals     Technology Hardware, Storage & Peripherals  
Floor   1.00%     1.00%  
Spread Above Index   6.25%     6.25%  
Interest Rate   7.25%     7.25%  
Acquisition Date   Jun. 22, 2021        
Maturity Date   Feb. 24, 2026     Feb. 24, 2026  
Investments, amortized cost   $ 9,951        
Investments, at fair value   10,101        
Principal/Share Amount   $ 10,135        
Investment, Identifier [Axis]: LINC Systems, LLC, First Lien Secured Revolving Loan, Floor 1.50%, Spread L plus 6.25%, Rate 7.25%, Due 2/24/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:LINCSystemsLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Technology Hardware, Storage & Peripherals     Technology Hardware, Storage & Peripherals  
Floor   1.00%     1.00%  
Spread Above Index   6.25%     6.25%  
Interest Rate   7.25%     7.25%  
Acquisition Date   Jun. 22, 2021        
Maturity Date   Feb. 24, 2026     Feb. 24, 2026  
Investments, at fair value   $ 12        
Investment, Identifier [Axis]: LMG Holdings, Inc First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:LMGHoldingsIncMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Electronic Equipment & Instruments     Electronic Equipment & Instruments  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.50%     6.50%  
Interest Rate   7.50%     7.50%  
Acquisition Date   Apr. 30, 2021        
Maturity Date   Apr. 30, 2026     Apr. 30, 2026  
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: LMG Holdings, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:LMGHoldingsIncMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Electronic Equipment & Instruments     Electronic Equipment & Instruments  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.50%     6.50%  
Interest Rate   7.50%     7.50%  
Acquisition Date   Apr. 30, 2021        
Maturity Date   Apr. 30, 2026     Apr. 30, 2026  
Investments, amortized cost   $ 6,684        
Investments, at fair value   $ 6,687        
Percent of net assets   1.91%     1.91%  
Principal/Share Amount   $ 6,802        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: LMG Holdings, Inc., First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.50%, Rate 7.50%, Due 4/30/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:LMGHoldingsIncMember whf:LMGHoldingsIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Electronic Equipment & Instruments Electronic Equipment & Instruments Electronic Equipment & Instruments Electronic Equipment & Instruments Electronic Equipment & Instruments  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.00% 6.50% 7.00% 7.00% 6.50%  
Interest Rate 10.09% 7.50% 10.09% 10.09% 7.50%  
Acquisition Date Jun. 28, 2021 Jun. 28, 2021        
Maturity Date Apr. 30, 2026 Apr. 30, 2026 Apr. 30, 2026 Apr. 30, 2026 Apr. 30, 2026  
Investments, amortized cost $ 261          
Investments, at fair value 256          
Principal/Share Amount $ 265          
Investment, Identifier [Axis]: LMG Holdings, Inc., First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.50%, Rate 7.50%, Due 4/30/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:LMGHoldingsIncMember whf:LMGHoldingsIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Electronic Equipment & Instruments Electronic Equipment & Instruments Electronic Equipment & Instruments Electronic Equipment & Instruments Electronic Equipment & Instruments  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.00% 6.50% 7.00% 7.00% 6.50%  
Interest Rate 10.67% 7.50% 10.67% 10.67% 7.50%  
Acquisition Date Jun. 28, 2021 Jun. 28, 2021        
Maturity Date Apr. 30, 2026 Apr. 30, 2026 Apr. 30, 2026 Apr. 30, 2026 Apr. 30, 2026  
Investments, amortized cost $ 13,303 $ 6,680        
Investments, at fair value 13,229 6,687        
Principal/Share Amount $ 13,501 $ 6,802        
Investment, Identifier [Axis]: LSCS Holdings, Inc Second Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:LSCSHoldingsIncMember whf:LSCSHoldingsIncMember        
Investment, Type [Extensible Enumeration] whf:SecondLienSecuredTermLoanMember whf:SecondLienSecuredTermLoanMember whf:SecondLienSecuredTermLoanMember whf:SecondLienSecuredTermLoanMember whf:SecondLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Life Sciences Tools & Services Life Sciences Tools & Services Life Sciences Tools & Services Life Sciences Tools & Services Life Sciences Tools & Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 0.50% 0.50% 0.50% 0.50% 0.50%  
Spread Above Index 8.00% 8.00% 8.00% 8.00% 8.00%  
Interest Rate 11.67% 8.50% 11.67% 11.67% 8.50%  
Acquisition Date Nov. 23, 2021 Nov. 23, 2021        
Maturity Date Dec. 16, 2029 Dec. 16, 2029 Dec. 16, 2029 Dec. 16, 2029 Dec. 16, 2029  
Investments, amortized cost $ 4,932 $ 4,925        
Investments, at fair value $ 4,912 $ 4,925        
Percent of net assets 1.43% 1.41% 1.43% 1.43% 1.41%  
Principal/Share Amount $ 5,000 $ 5,000        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Lab Logistics, LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:LabLogisticsLLCMember whf:LabLogisticsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Health Care Services Health Care Services Health Care Services Health Care Services Health Care Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.25% 7.25% 7.25% 7.25% 7.25%  
Interest Rate 10.20% 8.25% 10.20% 10.20% 8.25%  
Acquisition Date Oct. 16, 2019 Oct. 16, 2019        
Maturity Date Sep. 25, 2023 Sep. 25, 2023 Sep. 25, 2023 Sep. 25, 2023 Sep. 25, 2023  
Investments, amortized cost $ 5,135 $ 5,166        
Investments, at fair value $ 5,144 $ 5,183        
Percent of net assets 1.50% 1.48% 1.50% 1.50% 1.48%  
Principal/Share Amount $ 5,144 $ 5,183        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Lab Logistics, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:LabLogisticsLLCMember whf:LabLogisticsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Health Care Services Health Care Services Health Care Services Health Care Services Health Care Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.25% 7.25% 7.25% 7.25% 7.25%  
Interest Rate 10.16% 8.25% 10.16% 10.16% 8.25%  
Acquisition Date Oct. 16, 2019 Oct. 16, 2019        
Maturity Date Sep. 25, 2023 Sep. 25, 2023 Sep. 25, 2023 Sep. 25, 2023 Sep. 25, 2023  
Investments, amortized cost $ 5,446 $ 1,140        
Investments, at fair value $ 5,495 $ 1,155        
Percent of net assets 1.60% 0.33% 1.60% 1.60% 0.33%  
Principal/Share Amount $ 5,501 $ 1,155        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Lab Logistics, LLC Preferred Units            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:LabLogisticsLLCMember        
Investment, Type [Extensible Enumeration]   whf:PreferredUnitsMember     whf:PreferredUnitsMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Health Care Services     Health Care Services  
Spread Above Index   14.00%     14.00%  
Acquisition Date   Oct. 29, 2019        
Investments, amortized cost   $ 857        
Investments, at fair value   $ 1,018        
Percent of net assets   0.29%     0.29%  
Principal/Share Amount   $ 2        
PIK interest rate   14.00%     14.00%  
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Non-income Producing [true false]   true     true  
Investment, Identifier [Axis]: Lenny & Larry's, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:LennyLarrysLLCMember whf:LennyLarrysLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Packaged Foods & Meats Packaged Foods & Meats Packaged Foods & Meats Packaged Foods & Meats Packaged Foods & Meats  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 8.92% 8.40% 8.92% 8.92% 8.40%  
Interest Rate 11.74% 9.40% 11.74% 11.74% 9.40%  
Acquisition Date May 15, 2018 May 15, 2018        
Maturity Date May 15, 2023 May 15, 2023 May 15, 2023 May 15, 2023 May 15, 2023  
Investments, amortized cost $ 11,175 $ 11,084        
Investments, at fair value $ 10,922 $ 10,862        
Percent of net assets 3.19% 3.11% 3.19% 3.19% 3.11%  
Principal/Share Amount $ 11,201 $ 11,142        
PIK interest rate 1.71% 1.72% 1.71% 1.71% 1.72%  
Investment, interest rate, paid in cash 10.03% 7.68% 10.03% 10.03% 7.68%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Additional interest for senior term debt 3.00%          
Investment, Identifier [Axis]: Lift Brands, Inc First Lien Secured Term Loan A            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:LiftBrandsIncMember whf:LiftBrandsIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanAMember whf:FirstLienSecuredTermLoanAMember whf:FirstLienSecuredTermLoanAMember whf:FirstLienSecuredTermLoanAMember whf:FirstLienSecuredTermLoanAMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.50% 7.50% 7.50% 7.50% 7.50%  
Interest Rate 10.62% 8.50% 10.62% 10.62% 8.50%  
Acquisition Date Jun. 29, 2020 Jun. 29, 2020        
Maturity Date Jun. 29, 2025 Jun. 29, 2025 Jun. 29, 2025 Jun. 29, 2025 Jun. 29, 2025  
Investments, amortized cost $ 5,541 $ 5,570        
Investments, at fair value $ 5,533 $ 5,546        
Percent of net assets 1.61% 1.59% 1.61% 1.61% 1.59%  
Principal/Share Amount $ 5,588 $ 5,631        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Lift Brands, Inc First Lien Secured Term Loan B            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:LiftBrandsIncMember whf:LiftBrandsIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanBMember whf:FirstLienSecuredTermLoanBMember whf:FirstLienSecuredTermLoanBMember whf:FirstLienSecuredTermLoanBMember whf:FirstLienSecuredTermLoanBMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities  
Spread Above Index 9.50% 9.50% 9.50% 9.50% 9.50%  
Interest Rate 9.50% 9.50% 9.50% 9.50% 9.50%  
Acquisition Date Jun. 29, 2020 Jun. 29, 2020        
Maturity Date Jun. 29, 2025 Jun. 29, 2025 Jun. 29, 2025 Jun. 29, 2025 Jun. 29, 2025  
Investments, amortized cost $ 1,314 $ 1,259        
Investments, at fair value $ 1,302 $ 1,239        
Percent of net assets 0.38% 0.35% 0.38% 0.38% 0.35%  
Principal/Share Amount $ 1,330 $ 1,279        
PIK interest rate 9.50% 9.50% 9.50% 9.50% 9.50%  
Investment, interest rate, paid in cash 0.00% 0.00% 0.00% 0.00% 0.00%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Luxury Brand Holdings, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:LuxuryBrandHoldingsIncMember whf:LuxuryBrandHoldingsIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 9.31% 7.50% 9.31% 9.31% 7.50%  
Acquisition Date Dec. 04, 2020 Dec. 04, 2020        
Maturity Date Jun. 04, 2026 Jun. 04, 2026 Jun. 04, 2026 Jun. 04, 2026 Jun. 04, 2026  
Investments, amortized cost $ 5,816 $ 5,844        
Investments, at fair value $ 5,854 $ 5,940        
Percent of net assets 1.71% 1.70% 1.71% 1.71% 1.70%  
Principal/Share Amount $ 5,895 $ 5,940        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: MEP-TS Midco, LLC, First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 12/31/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:MEP-TSMidcoLLCMember whf:MEP-TSMidcoLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Application Software Application Software Application Software Application Software Application Software  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.00% 6.00% 6.00% 6.00% 6.00%  
Interest Rate 8.88% 7.00% 8.88% 8.88% 7.00%  
Acquisition Date Jan. 21, 2021 Jan. 21, 2021        
Maturity Date Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026  
Investments, at fair value $ 24 $ 28        
Investment, Identifier [Axis]: MEP-TS Midco, LLC, First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 12/31/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:MEP-TSMidcoLLCMember whf:MEP-TSMidcoLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Application Software Application Software Application Software Application Software Application Software  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.00% 6.00% 6.00% 6.00% 6.00%  
Interest Rate 8.88% 7.00% 8.88% 8.88% 7.00%  
Acquisition Date Jan. 21, 2021 Jan. 21, 2021        
Maturity Date Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026  
Investments, amortized cost $ 13,183 $ 13,247        
Investments, at fair value 13,387 13,490        
Principal/Share Amount $ 13,387 $ 13,490        
Investment, Identifier [Axis]: MSI Information Services, Inc First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:MSIInformationServicesIncMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Interactive Media & Services   Interactive Media & Services Interactive Media & Services    
Investment, Variable Interest Rate, Type [Extensible Enumeration] us-gaap:BaseRateMember   us-gaap:BaseRateMember us-gaap:BaseRateMember    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.75%   6.75% 6.75%    
Interest Rate 13.00%   13.00% 13.00%    
Acquisition Date Apr. 25, 2022          
Maturity Date Apr. 24, 2026   Apr. 24, 2026 Apr. 24, 2026    
Investments, amortized cost $ 295          
Investments, at fair value $ 286          
Percent of net assets 0.08%   0.08% 0.08%    
Principal/Share Amount $ 300          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: MSI Information Services, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:MSIInformationServicesIncMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Interactive Media & Services   Interactive Media & Services Interactive Media & Services    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 7.75%   7.75% 7.75%    
Interest Rate 10.88%   10.88% 10.88%    
Acquisition Date Apr. 25, 2022          
Maturity Date Apr. 24, 2026   Apr. 24, 2026 Apr. 24, 2026    
Investments, amortized cost $ 7,711          
Investments, at fair value $ 7,647          
Percent of net assets 2.23%   2.23% 2.23%    
Principal/Share Amount $ 7,851          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Manchester Acquisition Sub LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:ManchesterAcquisitionSubLLCMember whf:ManchesterAcquisitionSubLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Diversified Chemicals Diversified Chemicals Diversified Chemicals Diversified Chemicals Diversified Chemicals  
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] whf:SecuredOvernightFinancingRateMember Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] whf:SecuredOvernightFinancingRateMember  
Floor 0.75% 0.75% 0.75% 0.75% 0.75%  
Spread Above Index 5.75% 5.75% 5.75% 5.75% 5.75%  
Interest Rate 8.85% 6.50% 8.85% 8.85% 6.50%  
Acquisition Date Nov. 16, 2021 Nov. 16, 2021        
Maturity Date Nov. 16, 2026 Nov. 16, 2026 Nov. 16, 2026 Nov. 16, 2026 Nov. 16, 2026  
Investments, amortized cost $ 7,575 $ 11,348        
Investments, at fair value $ 7,246 $ 11,340        
Percent of net assets 2.11% 3.24% 2.11% 2.11% 3.24%  
Principal/Share Amount $ 7,940 $ 12,000        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Marlin DTC-LS Midco 2, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:MarlinDTC-LSMidco2LLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Internet & Direct Marketing Retail     Internet & Direct Marketing Retail  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.50%     6.50%  
Interest Rate   7.50%     7.50%  
Acquisition Date   Aug. 06, 2021        
Maturity Date   Jul. 01, 2025     Jul. 01, 2025  
Investments, amortized cost   $ 4,200        
Investments, at fair value   $ 4,206        
Percent of net assets   1.20%     1.20%  
Principal/Share Amount   $ 4,277        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Marlin DTC-LS Midco 2, LLC, First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.50%, Rate 7.50%, Due 7/1/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:MarlinDTC-LSMidco2LLCMember whf:MarlinDTC-LSMidco2LLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 9.57% 7.50% 9.57% 9.57% 7.50%  
Acquisition Date Jul. 19, 2019 Jul. 19, 2019        
Maturity Date Jul. 01, 2025 Jul. 01, 2025 Jul. 01, 2025 Jul. 01, 2025 Jul. 01, 2025  
Investments, at fair value $ 9 $ 11        
Investment, Identifier [Axis]: Marlin DTC-LS Midco 2, LLC, First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.50%, Rate 7.50%, Due 7/1/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:MarlinDTC-LSMidco2LLCMember whf:MarlinDTC-LSMidco2LLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 9.57% 7.50% 9.57% 9.57% 7.50%  
Acquisition Date Jul. 19, 2019 Jul. 19, 2019        
Maturity Date Jul. 01, 2025 Jul. 01, 2025 Jul. 01, 2025 Jul. 01, 2025 Jul. 01, 2025  
Investments, amortized cost $ 18,901 $ 15,153        
Investments, at fair value 19,105 15,342        
Principal/Share Amount $ 19,105 $ 15,342        
Investment, Identifier [Axis]: Max Solutions Inc. Common Stock            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] Max Solutions Inc          
Investment, Type [Extensible Enumeration] Common Stock [Member]   Common Stock [Member] Common Stock [Member]    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Paper Packaging   Paper Packaging Paper Packaging    
Acquisition Date Sep. 29, 2022          
Investments, amortized cost $ 400          
Investments, at fair value $ 400          
Percent of net assets 0.12%   0.12% 0.12%    
Principal/Share Amount $ 4          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Non-income Producing [true false] false   false false    
Investment, Identifier [Axis]: Max Solutions Inc. First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:LennyLarrysLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember   whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Paper Packaging   Paper Packaging Paper Packaging    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.50%   6.50% 6.50%    
Interest Rate 10.21%   10.21% 10.21%    
Acquisition Date Sep. 29, 2022          
Maturity Date Sep. 29, 2028   Sep. 29, 2028 Sep. 29, 2028    
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Max Solutions Inc. First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:LennyLarrysLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Paper Packaging   Paper Packaging Paper Packaging    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.50%   6.50% 6.50%    
Interest Rate 10.21%   10.21% 10.21%    
Acquisition Date Sep. 29, 2022          
Maturity Date Sep. 29, 2028   Sep. 29, 2028 Sep. 29, 2028    
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Max Solutions Inc. First Lien Secured Revolving Loan CAD            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:LennyLarrysLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Paper Packaging   Paper Packaging Paper Packaging    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.50%   6.50% 6.50%    
Interest Rate 10.21%   10.21% 10.21%    
Acquisition Date Sep. 29, 2022          
Maturity Date Sep. 29, 2028   Sep. 29, 2028 Sep. 29, 2028    
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Max Solutions Inc. First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:LennyLarrysLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Industry Sector [Extensible Enumeration] Paper Packaging   Paper Packaging Paper Packaging    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.50%   6.50% 6.50%    
Interest Rate 10.21%   10.21% 10.21%    
Acquisition Date Sep. 29, 2022          
Maturity Date Sep. 29, 2028   Sep. 29, 2028 Sep. 29, 2028    
Investments, amortized cost $ 8,099          
Investments, at fair value $ 8,099          
Percent of net assets 2.35%   2.35% 2.35%    
Principal/Share Amount $ 8,264          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Maxitransfers Blocker Corp First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:MaxitransfersBlockerCorpMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Consumer Finance     Consumer Finance  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   8.50%     8.50%  
Interest Rate   9.50%     9.50%  
Acquisition Date   Oct. 07, 2020        
Maturity Date   Oct. 07, 2025     Oct. 07, 2025  
Investments, amortized cost   $ 1,019        
Investments, at fair value   $ 1,038        
Percent of net assets   0.30%     0.30%  
Principal/Share Amount   $ 1,038        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Maxitransfers Blocker Corp First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:MaxitransfersBlockerCorpMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Consumer Finance     Consumer Finance  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   8.50%     8.50%  
Interest Rate   9.50%     9.50%  
Acquisition Date   Oct. 07, 2020        
Maturity Date   Oct. 07, 2025     Oct. 07, 2025  
Investments, amortized cost   $ 8,436        
Investments, at fair value   $ 8,590        
Percent of net assets   2.46%     2.46%  
Principal/Share Amount   $ 8,590        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Meta Buyer LLC, First Lien Secured Delayed Draw Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.97%, Due 11/1/2027            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:MetaBuyerLLCMember whf:MetaBuyerLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Pharmaceuticals [Member] Personal Products Pharmaceuticals [Member] Pharmaceuticals [Member] Personal Products  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.00% 6.00% 6.00% 6.00% 6.00%  
Interest Rate 9.52% 7.00% 9.52% 9.52% 7.00%  
Acquisition Date Dec. 16, 2021 Dec. 16, 2021        
Maturity Date Nov. 01, 2027 Nov. 01, 2027 Nov. 01, 2027 Nov. 01, 2027 Nov. 01, 2027  
Investments, amortized cost $ 881          
Investments, at fair value 885          
Principal/Share Amount $ 897          
Investment, Identifier [Axis]: Meta Buyer LLC, First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.97%, Due 11/1/2027            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:MetaBuyerLLCMember whf:MetaBuyerLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Pharmaceuticals [Member] Personal Products Pharmaceuticals [Member] Pharmaceuticals [Member] Personal Products  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.00% 6.00% 6.00% 6.00% 6.00%  
Interest Rate 8.80% 7.00% 8.80% 8.80% 7.00%  
Acquisition Date Dec. 16, 2021 Dec. 16, 2021        
Maturity Date Nov. 01, 2027 Nov. 01, 2027 Nov. 01, 2027 Nov. 01, 2027 Nov. 01, 2027  
Investments, amortized cost   $ 246        
Investments, at fair value $ 6 246        
Principal/Share Amount   $ 251        
Investment, Identifier [Axis]: Meta Buyer LLC, First lien Secured Term Loan, Floor 1.00%, Spread E plus 6.00%, Rate 7.00%, Due 11/1/2027            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:MetaBuyerLLCMember whf:MetaBuyerLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Pharmaceuticals [Member] Personal Products Pharmaceuticals [Member] Pharmaceuticals [Member] Personal Products  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.00% 6.00% 6.00% 6.00% 6.00%  
Interest Rate 7.00% 7.00% 7.00% 7.00% 7.00%  
Acquisition Date Dec. 16, 2021 Dec. 16, 2021        
Maturity Date Nov. 01, 2027 Nov. 01, 2027 Nov. 01, 2027 Nov. 01, 2027 Nov. 01, 2027  
Investments, amortized cost $ 13,664 $ 13,737        
Investments, at fair value 11,844 13,843        
Principal/Share Amount $ 12,318 $ 12,411        
Investment, Identifier [Axis]: Meta Buyer LLC, First lien Secured Term Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.33%, Due 11/1/2027            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:MetaBuyerLLCMember whf:MetaBuyerLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Pharmaceuticals [Member] Personal Products Pharmaceuticals [Member] Pharmaceuticals [Member] Personal Products  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.00% 6.00% 6.00% 6.00% 6.00%  
Interest Rate 8.80% 7.00% 8.80% 8.80% 7.00%  
Acquisition Date Dec. 16, 2021 Dec. 16, 2021        
Maturity Date Nov. 01, 2027 Nov. 01, 2027 Nov. 01, 2027 Nov. 01, 2027 Nov. 01, 2027  
Investments, amortized cost $ 967 $ 972        
Investments, at fair value 971 972        
Principal/Share Amount $ 984 $ 991        
Investment, Identifier [Axis]: Mikawaya Holdings, LLC, First Lien Secured Term Loan, Floor 1.25%, Spread L plus 5.50%, Rate 6.75%, Due 1/29/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:MikawayaHoldingsLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Packaged Foods & Meats     Packaged Foods & Meats  
Floor   1.25%     1.25%  
Spread Above Index   5.50%     5.50%  
Interest Rate   6.75%     6.75%  
Acquisition Date   Feb. 18, 2020        
Maturity Date   Jan. 29, 2025     Jan. 29, 2025  
Investments, amortized cost   $ 2,988        
Investments, at fair value   3,026        
Principal/Share Amount   $ 3,026        
Investment, Identifier [Axis]: Mills Fleet Farm Group, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:MillsFleetFarmGroupLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Department Stores     Department Stores  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.25%     6.25%  
Interest Rate   7.25%     7.25%  
Acquisition Date   Oct. 24, 2018        
Maturity Date   Oct. 24, 2024     Oct. 24, 2024  
Investments, amortized cost   $ 13,331        
Investments, at fair value   $ 13,538        
Percent of net assets   3.87%     3.87%  
Principal/Share Amount   $ 13,538        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Motivational CIV, LLC Class B Units            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:MotivationalCIVLLCMember whf:MotivationalCIVLLCMember        
Investment, Type [Extensible Enumeration] whf:ClassBUnitsMember whf:ClassBUnitsMember whf:ClassBUnitsMember whf:ClassBUnitsMember whf:ClassBUnitsMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics  
Acquisition Date Jul. 12, 2021 Jul. 12, 2021        
Investments, amortized cost $ 1,250 $ 1,250        
Investments, at fair value $ 606 $ 1,250        
Percent of net assets 0.18% 0.36% 0.18% 0.18% 0.36%  
Principal/Share Amount $ 1,250 $ 1,250        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: Motivational Marketing, LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:MotivationalMarketingLLCMember whf:MotivationalMarketingLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.25% 6.25% 6.25% 6.25% 6.25%  
Interest Rate 9.07% 7.25% 9.07% 9.07% 7.25%  
Acquisition Date Jul. 12, 2021 Jul. 12, 2021        
Maturity Date Jul. 12, 2026 Jul. 12, 2026 Jul. 12, 2026 Jul. 12, 2026 Jul. 12, 2026  
Investments, at fair value $ (22) $ 7        
Percent of net assets (0.01%)   (0.01%) (0.01%)    
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Motivational Marketing, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:MotivationalMarketingLLCMember whf:MotivationalMarketingLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.25% 6.25% 6.25% 6.25% 6.25%  
Interest Rate 9.07% 7.25% 9.07% 9.07% 7.25%  
Acquisition Date Jul. 12, 2021 Jul. 12, 2021        
Maturity Date Jul. 12, 2026 Jul. 12, 2026 Jul. 12, 2026 Jul. 12, 2026 Jul. 12, 2026  
Investments, amortized cost $ 10,956 $ 11,575        
Investments, at fair value $ 10,744 $ 11,646        
Percent of net assets 3.13% 3.33% 3.13% 3.13% 3.33%  
Principal/Share Amount $ 11,124 $ 11,789        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: NMFC Senior Loan Program I LLC Units            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:ArcoleHoldingCorporationMember        
Investment, Type [Extensible Enumeration]   Equity Investments     Equity Investments  
Investments, at fair value           9,269
Investment, Identifier [Axis]: NNA Services, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:NNAServicesLLCMember whf:NNAServicesLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.75% 6.75% 6.75% 6.75% 6.75%  
Interest Rate 10.42% 7.75% 10.42% 10.42% 7.75%  
Acquisition Date Aug. 27, 2021 Aug. 27, 2021        
Maturity Date Aug. 27, 2026 Aug. 27, 2026 Aug. 27, 2026 Aug. 27, 2026 Aug. 27, 2026  
Investments, amortized cost $ 11,264 $ 11,459        
Investments, at fair value $ 11,165 $ 11,460        
Percent of net assets 3.25% 3.28% 3.25% 3.25% 3.28%  
Principal/Share Amount $ 11,375 $ 11,594        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: NPAV Lessor Corp., First Lien Secured Revolving Loan, Floor 1.00%, Spread SF plus 6.00%, Rate 7.60%, Due 1/21/2027            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:NPAVLessorCorp.Member          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] us-gaap:RealEstateSectorMember   us-gaap:RealEstateSectorMember us-gaap:RealEstateSectorMember    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.00%   6.00% 6.00%    
Interest Rate 9.16%   9.16% 9.16%    
Acquisition Date Mar. 01, 2022          
Maturity Date Jan. 21, 2027   Jan. 21, 2027 Jan. 21, 2027    
Investments, at fair value $ (16)          
Investment, Identifier [Axis]: NPAV Lessor Corp., First Lien Secured Term Loan, Floor 1.00%, Spread SF plus 6.00%, Rate 7.60%, Due 1/21/2027            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:NPAVLessorCorp.Member          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] us-gaap:RealEstateSectorMember   us-gaap:RealEstateSectorMember us-gaap:RealEstateSectorMember    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.00%   6.00% 6.00%    
Interest Rate 9.16%   9.16% 9.16%    
Acquisition Date Mar. 01, 2022          
Maturity Date Jan. 21, 2027   Jan. 21, 2027 Jan. 21, 2027    
Investments, amortized cost $ 8,791          
Investments, at fair value 8,588          
Principal/Share Amount $ 8,946          
Investment, Identifier [Axis]: Naviga Inc First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:NavigaIncMember whf:NavigaIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Application Software Application Software Application Software Application Software Application Software  
Investment, Variable Interest Rate, Type [Extensible Enumeration] us-gaap:BaseRateMember London Interbank Offered Rate (LIBOR) [Member] us-gaap:BaseRateMember us-gaap:BaseRateMember London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.92% 7.00% 6.92% 6.92% 7.00%  
Interest Rate 10.28% 8.00% 10.28% 10.28% 8.00%  
Acquisition Date Jun. 14, 2019 Jun. 14, 2019        
Maturity Date Dec. 29, 2022 Dec. 29, 2022 Dec. 29, 2022 Dec. 29, 2022 Dec. 29, 2022  
Investments, amortized cost $ 267 $ 168        
Investments, at fair value $ 261 $ 169        
Percent of net assets 0.08% 0.05% 0.08% 0.08% 0.05%  
Principal/Share Amount $ 267 $ 169        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Naviga Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:NavigaIncMember whf:NavigaIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Application Software Application Software Application Software Application Software Application Software  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.00% 7.00% 7.00% 7.00% 7.00%  
Interest Rate 10.67% 8.00% 10.67% 10.67% 8.00%  
Acquisition Date Jun. 14, 2019 Jun. 14, 2019        
Maturity Date Dec. 29, 2022 Dec. 29, 2022 Dec. 29, 2022 Dec. 29, 2022 Dec. 29, 2022  
Investments, amortized cost $ 3,184 $ 3,195        
Investments, at fair value $ 3,125 $ 3,213        
Percent of net assets 0.91% 0.92% 0.91% 0.91% 0.92%  
Principal/Share Amount $ 3,189 $ 3,213        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Nelson Worldwide, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:NelsonWorldwideLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Research & Consulting Services     Research & Consulting Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   10.25%     10.25%  
Interest Rate   11.25%     11.25%  
Acquisition Date   Jan. 09, 2018        
Maturity Date   Jan. 09, 2023     Jan. 09, 2023  
Investments, amortized cost   $ 9,976        
Investments, at fair value   $ 9,826        
Percent of net assets   2.81%     2.81%  
Principal/Share Amount   $ 10,027        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: PFB Holdco, Inc Class A Units            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:PFBHoldcoIncMember whf:PFBHoldcoIncMember        
Investment, Type [Extensible Enumeration] whf:ClassAUnitsMember whf:ClassAUnitsMember whf:ClassAUnitsMember whf:ClassAUnitsMember whf:ClassAUnitsMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Building Products Data Processing & Outsourced Services Building Products Building Products Data Processing & Outsourced Services  
Acquisition Date Dec. 17, 2021 Dec. 17, 2021        
Investments, amortized cost $ 423 $ 423        
Investments, at fair value $ 603       $ 427  
Percent of net assets 0.18% 0.12% 0.18% 0.18% 0.12%  
Principal/Share Amount   $ 1 $ 1      
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: PFB Holdco, Inc First Lien Secured Revolving Loan Floor 2.45            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:PFBHoldcoIncMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Building Products     Building Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whf:CanadaPrimeRateMember     whf:CanadaPrimeRateMember  
Floor   2.45%     2.45%  
Spread Above Index   5.50%     5.50%  
Interest Rate   7.95%     7.95%  
Acquisition Date   Dec. 17, 2021        
Maturity Date   Dec. 17, 2026     Dec. 17, 2026  
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: PFB Holdco, Inc First Lien Secured Revolving Loan Floor 3.25            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:PFBHoldcoIncMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Building Products     Building Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   us-gaap:PrimeRateMember     us-gaap:PrimeRateMember  
Floor   3.25%     3.25%  
Spread Above Index   5.50%     5.50%  
Interest Rate   8.75%     8.75%  
Acquisition Date   Dec. 17, 2021        
Maturity Date   Dec. 17, 2026     Dec. 17, 2026  
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: PFB Holdco, Inc First Lien Secured Term Loan CDOR            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:PFBHoldcoIncMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Building Products   Building Products Building Products    
Investment, Variable Interest Rate, Type [Extensible Enumeration] CanadianDollarOfferedRateMember   CanadianDollarOfferedRateMember CanadianDollarOfferedRateMember    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.00%   6.00% 6.00%    
Interest Rate 8.71%   8.71% 8.71%    
Acquisition Date Dec. 17, 2021          
Maturity Date Dec. 17, 2026   Dec. 17, 2026 Dec. 17, 2026    
Investments, amortized cost $ 6,889          
Investments, at fair value $ 6,382          
Percent of net assets 1.85%   1.85% 1.85%    
Principal/Share Amount     $ 8,959      
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: PFB Holdco, Inc First Lien Secured Term Loan Floor 2.45            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:PFBHoldcoIncMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Building Products     Building Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whf:CanadaPrimeRateMember     whf:CanadaPrimeRateMember  
Floor   2.45%     2.45%  
Spread Above Index   5.50%     5.50%  
Interest Rate   7.95%     7.95%  
Acquisition Date   Dec. 17, 2021        
Maturity Date   Dec. 17, 2026     Dec. 17, 2026  
Investments, amortized cost   $ 6,923        
Investments, at fair value   $ 6,998        
Percent of net assets   2.00%     2.00%  
Principal/Share Amount   $ 9,027        
Investment, Restriction Status [true false]   true     true  
Investment, Identifier [Axis]: PFB Holdco, Inc First Lien Secured Term Loan Floor 3.25            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:PFBHoldcoIncMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Building Products     Building Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   us-gaap:PrimeRateMember     us-gaap:PrimeRateMember  
Floor   3.25%     3.25%  
Spread Above Index   5.50%     5.50%  
Interest Rate   8.75%     8.75%  
Acquisition Date   Dec. 17, 2021        
Maturity Date   Dec. 17, 2026     Dec. 17, 2026  
Investments, amortized cost   $ 2,154        
Investments, at fair value   $ 2,154        
Percent of net assets   0.62%     0.62%  
Principal/Share Amount   $ 2,198        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: PFB Holdco, Inc. First Lien Secured Revolving Loan CDOR            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:PFBHoldcoIncMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Building Products   Building Products Building Products    
Investment, Variable Interest Rate, Type [Extensible Enumeration] CanadianDollarOfferedRateMember   CanadianDollarOfferedRateMember CanadianDollarOfferedRateMember    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.00%   6.00% 6.00%    
Interest Rate 8.71%   8.71% 8.71%    
Acquisition Date Dec. 17, 2021          
Maturity Date Dec. 17, 2026   Dec. 17, 2026 Dec. 17, 2026    
Investments, at fair value $ 2          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: PFB Holdco, Inc. First Lien Secured Revolving Loan LIBOR            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:PFBHoldcoIncMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Building Products   Building Products Building Products    
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member]   London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.00%   6.00% 6.00%    
Interest Rate 8.28%   8.28% 8.28%    
Acquisition Date Dec. 17, 2021          
Maturity Date Dec. 17, 2026   Dec. 17, 2026 Dec. 17, 2026    
Investments, at fair value $ 1          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: PFB Holdco, Inc. First Lien Secured Term Loan LIBOR            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:PFBHoldcoIncMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Building Products   Building Products Building Products    
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member]   London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.00%   6.00% 6.00%    
Interest Rate 8.28%   8.28% 8.28%    
Acquisition Date Dec. 17, 2021          
Maturity Date Dec. 17, 2026   Dec. 17, 2026 Dec. 17, 2026    
Investments, amortized cost $ 2,144          
Investments, at fair value $ 2,154          
Percent of net assets 0.63%   0.63% 0.63%    
Principal/Share Amount $ 2,182          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: PG Dental New Jersey Parent, LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:PGDentalNewJerseyParentLLCMember whf:PGDentalNewJerseyParentLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Health Care Services Health Care Services Health Care Services Health Care Services Health Care Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 9.75% 9.25% 9.75% 9.75% 9.25%  
Interest Rate 12.57% 10.25% 12.57% 12.57% 10.25%  
Acquisition Date Nov. 25, 2020 Nov. 25, 2020        
Maturity Date Nov. 25, 2025 Nov. 25, 2025 Nov. 25, 2025 Nov. 25, 2025 Nov. 25, 2025  
Investments, amortized cost $ 347 $ 689        
Investments, at fair value $ 308 $ 631        
Percent of net assets 0.09% 0.18% 0.09% 0.09% 0.18%  
Principal/Share Amount $ 352 $ 702        
PIK interest rate 1.50% 1.50% 1.50% 1.50% 1.50%  
Investment, interest rate, paid in cash 11.07% 8.75% 11.07% 11.07% 8.75%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: PG Dental New Jersey Parent, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:PGDentalNewJerseyParentLLCMember whf:PGDentalNewJerseyParentLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Health Care Services Health Care Services Health Care Services Health Care Services Health Care Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 9.75% 9.25% 9.75% 9.75% 9.25%  
Interest Rate 12.57% 10.25% 12.57% 12.57% 10.25%  
Acquisition Date Nov. 25, 2020 Nov. 25, 2020        
Maturity Date Nov. 25, 2025 Nov. 25, 2025 Nov. 25, 2025 Nov. 25, 2025 Nov. 25, 2025  
Investments, amortized cost $ 14,640 $ 15,178        
Investments, at fair value $ 13,807 $ 14,212        
Percent of net assets 4.03% 4.06% 4.03% 4.03% 4.06%  
Principal/Share Amount $ 14,845 $ 15,448        
PIK interest rate 1.50% 1.50% 1.50% 1.50% 1.50%  
Investment, interest rate, paid in cash 11.07% 8.75% 11.07% 11.07% 8.75%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: PPS CR Acquisition, Inc First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:PPSCRAcquisitionIncMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember   whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Heavy Electrical Equipment   Heavy Electrical Equipment Heavy Electrical Equipment    
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member]   London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.25%   6.25% 6.25%    
Interest Rate 9.92%   9.92% 9.92%    
Acquisition Date Jul. 11, 2022          
Maturity Date Jun. 25, 2026   Jun. 25, 2026 Jun. 25, 2026    
Investments, at fair value $ (1)          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: PPS CR Acquisition, Inc First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:PPSCRAcquisitionIncMember whf:PPSCRAcquisitionIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Heavy Electrical Equipment Heavy Electrical Equipment Heavy Electrical Equipment Heavy Electrical Equipment Heavy Electrical Equipment  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.25% 6.25% 6.25% 6.25% 6.25%  
Interest Rate 9.92% 7.25% 9.92% 9.92% 7.25%  
Acquisition Date Jun. 25, 2021 Jun. 25, 2021        
Maturity Date Jun. 25, 2024 Jun. 25, 2024 Jun. 25, 2024 Jun. 25, 2024 Jun. 25, 2024  
Investments, amortized cost $ 103 $ 103        
Investments, at fair value $ 63 $ 113        
Percent of net assets 0.02% 0.03% 0.02% 0.02% 0.03%  
Principal/Share Amount $ 104 $ 104        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: PPS CR Acquisition, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:PPSCRAcquisitionIncMember whf:PPSCRAcquisitionIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Heavy Electrical Equipment Heavy Electrical Equipment Heavy Electrical Equipment Heavy Electrical Equipment Heavy Electrical Equipment  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.25% 6.25% 6.25% 6.25% 6.25%  
Interest Rate 9.92% 7.25% 9.92% 9.92% 7.25%  
Acquisition Date Jun. 25, 2021 Jun. 25, 2021        
Maturity Date Jun. 25, 2026 Jun. 25, 2026 Jun. 25, 2026 Jun. 25, 2026 Jun. 25, 2026  
Investments, amortized cost $ 13,942 $ 10,924        
Investments, at fair value $ 13,835 $ 10,975        
Percent of net assets 4.03% 3.14% 4.03% 4.03% 3.14%  
Principal/Share Amount $ 14,166 $ 11,123        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: PS Lightwave, Inc., First Lien Secured Delayed Draw Loan, Floor 1.50%, Spread L plus 6.75%, Rate 8.25%, Due 3/10/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:PSLightwaveInc.Member        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredDelayedDrawLoanMember     whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Technology Hardware, Storage & Peripherals     Technology Hardware, Storage & Peripherals  
Floor   1.50%     1.50%  
Spread Above Index   6.75%     6.75%  
Interest Rate   8.25%     8.25%  
Acquisition Date   May 19, 2020        
Maturity Date   Mar. 10, 2025     Mar. 10, 2025  
Investments, at fair value   $ 5        
Investment, Identifier [Axis]: PS Lightwave, Inc., First Lien Secured Term Loan, Floor 1.50%, Spread L plus 6.75%, Rate 8.25%, Due 3/10/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:PSLightwaveInc.Member        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Technology Hardware, Storage & Peripherals     Technology Hardware, Storage & Peripherals  
Floor   1.50%     1.50%  
Spread Above Index   6.75%     6.75%  
Interest Rate   8.25%     8.25%  
Acquisition Date   May 19, 2020        
Maturity Date   Mar. 10, 2025     Mar. 10, 2025  
Investments, amortized cost   $ 7,207        
Investments, at fair value   7,230        
Principal/Share Amount   $ 7,304        
Investment, Identifier [Axis]: Patagonia Hold co Llc First Lien Secured Term Loans            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:PatagoniaHoldcoLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Alternative Carriers   Alternative Carriers Alternative Carriers    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 0.50%   0.50% 0.50%    
Spread Above Index 5.75%   5.75% 5.75%    
Interest Rate 8.39%   8.39% 8.39%    
Acquisition Date Aug. 05, 2022          
Maturity Date Aug. 01, 2029   Aug. 01, 2029 Aug. 01, 2029    
Investments, amortized cost $ 12,040          
Investments, at fair value $ 11,993          
Percent of net assets 3.50%   3.50% 3.50%    
Principal/Share Amount $ 14,625          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Pennsylvania Machine Works, LLC, First Lien Secured Term Loan, Floor 1.00%, Spread SF plus 6.25%, Rate 8.57%, Due 3/8/27            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:PennsylvaniaMachineWorksLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Industrial Machinery   Industrial Machinery Industrial Machinery    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.25%   6.25% 6.25%    
Interest Rate 10.06%   10.06% 10.06%    
Acquisition Date Mar. 25, 2022          
Maturity Date Mar. 08, 2027   Mar. 08, 2027 Mar. 08, 2027    
Investments, amortized cost $ 6,833          
Investments, at fair value 6,925          
Principal/Share Amount $ 6,925          
Investment, Identifier [Axis]: PlayMonster LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   PlayMonster LLC [Member].        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredDelayedDrawLoanMember     whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Leisure Products     Leisure Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Jun. 07, 2021        
Maturity Date   Jun. 07, 2026     Jun. 07, 2026  
Investments, amortized cost   $ 221        
Investments, at fair value   $ (828)        
Percent of net assets   (0.24%)     (0.24%)  
Principal/Share Amount   $ 224        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: PlayMonster LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] PlayMonster LLC [Member]. PlayMonster LLC [Member].        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Leisure Products     Leisure Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.00%     6.00%  
Interest Rate   7.00%     7.00%  
Acquisition Date   Jun. 07, 2021        
Maturity Date   Jun. 07, 2026     Jun. 07, 2026  
Investments, amortized cost   $ 5,894        
Investments, at fair value   $ 3,900        
Percent of net assets   1.12%     1.12%  
Principal/Share Amount   $ 6,000        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Playmonster Group Equity Inc Common Equity            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:PlaymonsterGroupLLCMember          
Investment, Type [Extensible Enumeration] Common Stock [Member]   Common Stock [Member] Common Stock [Member]    
Investment, Identifier [Axis]: Playmonster Group Equity Inc Preferred Equity            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:PlaymonsterGroupLLCMember          
Investment, Type [Extensible Enumeration] us-gaap:PreferredStockMember   us-gaap:PreferredStockMember us-gaap:PreferredStockMember    
Investments, at fair value $ 2,099          
Investment, Identifier [Axis]: Playmonster Group Equity, Inc Common Stock            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] us-gaap-supplement:InvestmentAffiliatedIssuerMember   us-gaap-supplement:InvestmentAffiliatedIssuerMember us-gaap-supplement:InvestmentAffiliatedIssuerMember    
Investment, Issuer Name [Extensible Enumeration] whf:PlaymonsterGroupEquityIncMember          
Investment, Type [Extensible Enumeration] Common Stock [Member]   Common Stock [Member] Common Stock [Member]    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Leisure Products   Leisure Products Leisure Products    
Acquisition Date Jan. 24, 2022          
Investments, amortized cost $ 460          
Principal/Share Amount $ 72          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Non-income Producing [true false] false   false false    
Investment, Identifier [Axis]: Playmonster Group Equity, Inc. Preferred Stock            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] us-gaap-supplement:InvestmentAffiliatedIssuerMember   us-gaap-supplement:InvestmentAffiliatedIssuerMember us-gaap-supplement:InvestmentAffiliatedIssuerMember    
Investment, Issuer Name [Extensible Enumeration] whf:PlaymonsterGroupEquityIncMember          
Investment, Type [Extensible Enumeration] us-gaap:PreferredStockMember   us-gaap:PreferredStockMember us-gaap:PreferredStockMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Leisure Products   Leisure Products Leisure Products    
Spread Above Index 14.00%   14.00% 14.00%    
Acquisition Date Jan. 24, 2022          
Investments, amortized cost $ 3,600          
Investments, at fair value $ 2,099          
Percent of net assets 0.62%   0.62% 0.62%    
Principal/Share Amount $ 36          
PIK interest rate 14.00%   14.00% 14.00%    
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Non-income Producing [true false] true   true true    
Investment, Identifier [Axis]: Playmonster Group LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] us-gaap-supplement:InvestmentAffiliatedIssuerMember   us-gaap-supplement:InvestmentAffiliatedIssuerMember us-gaap-supplement:InvestmentAffiliatedIssuerMember    
Investment, Issuer Name [Extensible Enumeration] whf:PlaymonsterGroupLLCMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Leisure Products   Leisure Products Leisure Products    
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member]   London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 8.00%   8.00% 8.00%    
Interest Rate 10.78%   10.78% 10.78%    
Acquisition Date Jan. 24, 2022          
Maturity Date Jun. 08, 2026   Jun. 08, 2026 Jun. 08, 2026    
Investments, amortized cost $ 3,565          
Investments, at fair value $ 3,509          
Percent of net assets 1.02%   1.02% 1.02%    
Principal/Share Amount $ 3,565          
PIK interest rate 8.00%   8.00% 8.00%    
Investment, interest rate, paid in cash 2.78%   2.78% 2.78%    
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Interest issuer may Pay In Cash Or Cash And PIK 9.00%          
Investment, Identifier [Axis]: Potpourri Group, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:PotpourriGroupIncMember whf:PotpourriGroupIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.50% 1.50% 1.50% 1.50% 1.50%  
Spread Above Index 8.25% 8.25% 8.25% 8.25% 8.25%  
Interest Rate 9.75% 9.75% 9.75% 9.75% 9.75%  
Acquisition Date Jul. 03, 2019 Jul. 03, 2019        
Maturity Date Jul. 03, 2024 Jul. 03, 2024 Jul. 03, 2024 Jul. 03, 2024 Jul. 03, 2024  
Investments, amortized cost $ 16,383 $ 16,955        
Investments, at fair value $ 16,513 $ 17,148        
Percent of net assets 4.81% 4.90% 4.81% 4.81% 4.90%  
Principal/Share Amount $ 16,513 $ 17,148        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Poultry Holdings LLC (HPP), First Lien Secured Term Loan, Floor 1.00%, Spread L plus 7.25%, Rate 8.25% (6.75% Cash + 1.50% PIK), Due 6/28/225            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:PoultryHoldingsLLCMember whf:PoultryHoldingsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Packaged Foods & Meats Packaged Foods & Meats Packaged Foods & Meats Packaged Foods & Meats Packaged Foods & Meats  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.25% 7.25% 7.25% 7.25% 7.25%  
Interest Rate 10.38% 8.25% 10.38% 10.38% 8.25%  
Acquisition Date Oct. 21, 2019 Oct. 21, 2019        
Maturity Date Jun. 28, 2025 Jun. 28, 2025 Jun. 28, 2025 Jun. 28, 2025 Jun. 28, 2025  
Investments, amortized cost $ 7,117 $ 7,676        
Investments, at fair value 6,914 6,993        
Principal/Share Amount $ 7,183 $ 7,770        
PIK interest rate 1.50% 1.50% 1.50% 1.50% 1.50%  
Investment, interest rate, paid in cash 8.88% 6.75% 8.88% 8.88% 6.75%  
Investment, Identifier [Axis]: Project Castle, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:ProjectCastleIncMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Industrial Machinery   Industrial Machinery Industrial Machinery    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 0.50%   0.50% 0.50%    
Spread Above Index 5.50%   5.50% 5.50%    
Interest Rate 9.05%   9.05% 9.05%    
Acquisition Date Jun. 09, 2022          
Maturity Date Jun. 01, 2029   Jun. 01, 2029 Jun. 01, 2029    
Investments, amortized cost $ 7,521          
Investments, at fair value $ 7,541          
Percent of net assets 2.20%   2.20% 2.20%    
Principal/Share Amount $ 8,376          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Quest Events, LLC Preferred Units            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:QuestEventsLLCMember whf:QuestEventsLLCMember        
Investment, Type [Extensible Enumeration] whf:PreferredUnitsMember whf:PreferredUnitsMember whf:PreferredUnitsMember whf:PreferredUnitsMember whf:PreferredUnitsMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services  
Acquisition Date Dec. 28, 2018 Dec. 28, 2018        
Maturity Date Dec. 08, 2025 Dec. 08, 2025 Dec. 08, 2025 Dec. 08, 2025 Dec. 08, 2025  
Investments, amortized cost $ 331 $ 317        
Investments, at fair value $ 60          
Percent of net assets 0.02%   0.02% 0.02%    
Principal/Share Amount $ 331 $ 317        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false true false false true  
Investment, Identifier [Axis]: Quest Events, LLC, First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 12/28/2024            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:QuestEventsLLCMember whf:QuestEventsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.00% 6.00% 6.00% 6.00% 6.00%  
Interest Rate 9.67% 7.00% 9.67% 9.67% 7.00%  
Acquisition Date Jul. 19, 2019 Jul. 19, 2019        
Maturity Date Dec. 28, 2024 Dec. 28, 2024 Dec. 28, 2024 Dec. 28, 2024 Dec. 28, 2024  
Investments, amortized cost $ 464 $ 925        
Investments, at fair value 424 760        
Principal/Share Amount $ 468 $ 935        
Investment, Identifier [Axis]: Quest Events, LLC, First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 12/28/2024            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:QuestEventsLLCMember whf:QuestEventsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.00% 6.00% 6.00% 6.00% 6.00%  
Interest Rate 9.67% 7.00% 9.67% 9.67% 7.00%  
Acquisition Date Jul. 19, 2019 Jul. 19, 2019        
Maturity Date Dec. 28, 2024 Dec. 28, 2024 Dec. 28, 2024 Dec. 28, 2024 Dec. 28, 2024  
Investments, amortized cost $ 11,838 $ 11,848        
Investments, at fair value 11,317 9,729        
Principal/Share Amount $ 11,926 $ 11,966        
Investment, Identifier [Axis]: RCKC Acquisitions LLC , First Lien Secured Delayed Draw Loan, Floor 1.00%, Spread L plus 6.25%, Rate 7.25%, Due 12/31/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:RCKCAcquisitionsLLCMember whf:RCKCAcquisitionsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.25% 6.25% 6.25% 6.25% 6.25%  
Interest Rate 9.04% 7.25% 9.04% 9.04% 7.25%  
Acquisition Date Jan. 27, 2021 Jan. 27, 2021        
Maturity Date Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026  
Investments, amortized cost $ 2,967          
Investments, at fair value 2,969 $ (5)        
Principal/Share Amount $ 3,014          
Investment, Identifier [Axis]: RCKC Acquisitions LLC , First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.25%, Rate 7.25%, Due 12/31/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:RCKCAcquisitionsLLCMember whf:RCKCAcquisitionsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.25% 6.25% 6.25% 6.25% 6.25%  
Interest Rate 9.20% 7.25% 9.20% 9.20% 7.25%  
Acquisition Date Jan. 27, 2021 Jan. 27, 2021        
Maturity Date Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026  
Investments, amortized cost $ 526 $ 804        
Investments, at fair value 525 814        
Principal/Share Amount $ 533 $ 818        
Investment, Identifier [Axis]: RCKC Acquisitions LLC , First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.25%, Rate 7.25%, Due 12/312026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:RCKCAcquisitionsLLCMember whf:RCKCAcquisitionsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.25% 6.25% 6.25% 6.25% 6.25%  
Interest Rate 9.92% 7.25% 9.92% 9.92% 7.25%  
Acquisition Date Jan. 27, 2021 Jan. 27, 2021        
Maturity Date Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026 Dec. 31, 2026  
Investments, amortized cost $ 11,018 $ 11,074        
Investments, at fair value 11,011 11,151        
Principal/Share Amount $ 11,179 $ 11,264        
Investment, Identifier [Axis]: RLJ Pro-Vac, Inc. First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:RLJPro-VacInc.Member        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Environmental & Facilities Services     Environmental & Facilities Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.25%     6.25%  
Interest Rate   7.25%     7.25%  
Acquisition Date   Dec. 31, 2021        
Maturity Date   Dec. 31, 2026     Dec. 31, 2026  
Investments, amortized cost   $ 8,600        
Investments, at fair value   $ 8,600        
Percent of net assets   2.46%     2.46%  
Principal/Share Amount   $ 8,775        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: RLJ Pro-Vac, Inc. First Lien Secured Term Loan First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:RLJPro-VacInc.Member        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Environmental & Facilities Services     Environmental & Facilities Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.25%     6.25%  
Interest Rate   7.25%     7.25%  
Acquisition Date   Dec. 31, 2021        
Maturity Date   Dec. 31, 2026     Dec. 31, 2026  
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Road Safety Services, First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:RoadSafetyServicesIncMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Construction & Engineering     Construction & Engineering  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.50%     6.50%  
Interest Rate   7.50%     7.50%  
Acquisition Date   Dec. 30, 2021        
Maturity Date   Mar. 18, 2025     Mar. 18, 2025  
Investments, amortized cost   $ 4,017        
Investments, at fair value   $ 4,017        
Percent of net assets   1.15%     1.15%  
Principal/Share Amount   $ 4,099        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Road Safety Services, Inc., First Lien Secured Revolving Loan, Floor 3.25%, Spread P plus 5.50%, Rate 8.75%, Due 9/18/2023            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:RoadSafetyServicesIncMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Construction & Engineering     Construction & Engineering  
Floor   3.25%     3.25%  
Spread Above Index   5.50%     5.50%  
Interest Rate   8.75%     8.75%  
Acquisition Date   Dec. 31, 2019        
Maturity Date   Sep. 18, 2023     Sep. 18, 2023  
Investments, amortized cost   $ 489        
Investments, at fair value   501        
Principal/Share Amount   $ 496        
Investment, Identifier [Axis]: Road Safety Services, Inc., First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.50%, Rate 7.50%, Due 3/18/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:RoadSafetyServicesIncMember whf:RoadSafetyServicesIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Construction & Engineering Construction & Engineering Construction & Engineering Construction & Engineering Construction & Engineering  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 9.63% 7.50% 9.63% 9.63% 7.50%  
Acquisition Date Dec. 31, 2019 Dec. 31, 2019        
Maturity Date Mar. 18, 2025 Mar. 18, 2025 Mar. 18, 2025 Mar. 18, 2025 Mar. 18, 2025  
Investments, amortized cost $ 8,534 $ 6,340        
Investments, at fair value 8,625 6,405        
Principal/Share Amount $ 8,625 $ 6,427        
Investment, Identifier [Axis]: Ross-Simons Topco, LP Preferred Units            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:Ross-SimonsTopcoLPMember whf:Ross-SimonsTopcoLPMember        
Investment, Type [Extensible Enumeration] whf:PreferredUnitsMember whf:PreferredUnitsMember whf:PreferredUnitsMember whf:PreferredUnitsMember whf:PreferredUnitsMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail Internet & Direct Marketing Retail  
Spread Above Index 8.00% 8.00% 8.00% 8.00% 8.00%  
Acquisition Date Dec. 04, 2020 Dec. 04, 2020        
Investments, amortized cost $ 514 $ 600        
Investments, at fair value $ 816 $ 786        
Percent of net assets 0.24% 0.22% 0.24% 0.24% 0.22%  
Principal/Share Amount $ 600 $ 600        
PIK interest rate 8.00% 8.00% 8.00% 8.00% 8.00%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false true false false true  
Investment, Identifier [Axis]: SFS Global Holding Company Warrants            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:SFSGlobalHoldingCompanyMember whf:SFSGlobalHoldingCompanyMember        
Investment, Type [Extensible Enumeration] Warrant [Member] Warrant [Member] Warrant [Member] Warrant [Member] Warrant [Member]  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Other Diversified Financial Services Other Diversified Financial Services Other Diversified Financial Services Other Diversified Financial Services Other Diversified Financial Services  
Acquisition Date Jun. 28, 2018 Jun. 28, 2018        
Maturity Date Dec. 28, 2025 Dec. 28, 2025 Dec. 28, 2025 Dec. 28, 2025 Dec. 28, 2025  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: Sigue Corporation Warrants            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:SigueCorporationMember whf:SigueCorporationMember        
Investment, Type [Extensible Enumeration] Warrant [Member] Warrant [Member] Warrant [Member] Warrant [Member] Warrant [Member]  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Other Diversified Financial Services Other Diversified Financial Services Other Diversified Financial Services Other Diversified Financial Services Other Diversified Financial Services  
Acquisition Date Jun. 28, 2018 Jun. 28, 2018        
Maturity Date Dec. 28, 2025 Dec. 28, 2025 Dec. 28, 2025 Dec. 28, 2025 Dec. 28, 2025  
Investments, amortized cost $ 2,890 $ 2,890        
Investments, at fair value $ 3,823 $ 3,492        
Percent of net assets 1.11% 1.00% 1.11% 1.11% 1.00%  
Principal/Share Amount $ 22 $ 22        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: Sklar Holdings, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:SklarHoldingsIncMember whf:SklarHoldingsIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Diversified Chemicals Diversified Chemicals Diversified Chemicals Diversified Chemicals Diversified Chemicals  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 9.75% 7.75% 9.75% 9.75% 7.75%  
Interest Rate 10.75% 8.75% 10.75% 10.75% 8.75%  
Acquisition Date Nov. 13, 2019 Nov. 13, 2019        
Maturity Date May 13, 2023 May 13, 2023 May 13, 2023 May 13, 2023 May 13, 2023  
Investments, amortized cost $ 7,292 $ 7,295        
Investments, at fair value $ 6,695 $ 7,020        
Percent of net assets 1.95% 2.01% 1.95% 1.95% 2.01%  
Principal/Share Amount $ 7,353 $ 7,389        
PIK interest rate 2.00%   2.00% 2.00%    
Investment, interest rate, paid in cash 8.75%   8.75% 8.75%    
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Sleep OpCo LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:SleepOpCoLLCMember whf:SleepOpCoLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Home Furnishings Home Furnishings Home Furnishings Home Furnishings Home Furnishings  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 8.92% 7.50% 8.92% 8.92% 7.50%  
Acquisition Date Oct. 12, 2021 Oct. 12, 2021        
Maturity Date Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026  
Investments, at fair value $ 10          
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Sleep OpCo LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:SleepOpCoLLCMember whf:SleepOpCoLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Home Furnishings Home Furnishings Home Furnishings Home Furnishings Home Furnishings  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 8.92% 7.50% 8.92% 8.92% 7.50%  
Acquisition Date Oct. 12, 2021 Oct. 12, 2021        
Maturity Date Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026  
Investments, amortized cost $ 20,555 $ 19,651        
Investments, at fair value $ 20,630 $ 19,645        
Percent of net assets 6.01% 5.62% 6.01% 6.01% 5.62%  
Principal/Share Amount $ 20,895 $ 20,034        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Smalto Inc., First Lien Secured Revolving Loan, Floor 1.00%, Spread E plus 6.00%, Rate 7.25%, Due 4/29/27            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:SmaltoInc.Member          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Household Appliances   Household Appliances Household Appliances    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.25%   6.25% 6.25%    
Interest Rate 7.25%   7.25% 7.25%    
Acquisition Date May 04, 2022          
Maturity Date Apr. 29, 2027   Apr. 29, 2027 Apr. 29, 2027    
Investments, amortized cost $ 437          
Investments, at fair value 396          
Principal/Share Amount $ 419          
Investment, Identifier [Axis]: Smalto Inc., First Lien Secured Revolving Loan, Floor 1.00%, Spread SF plus 6.00%, Rate 7.25%, Due 4/29/27            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:SmaltoInc.Member          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember   whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Household Appliances   Household Appliances Household Appliances    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.00%   6.00% 6.00%    
Interest Rate 8.68%   8.68% 8.68%    
Acquisition Date May 04, 2022          
Maturity Date Apr. 29, 2027   Apr. 29, 2027 Apr. 29, 2027    
Investments, amortized cost $ 17          
Investments, at fair value 17          
Principal/Share Amount $ 17          
Investment, Identifier [Axis]: Smalto Inc., First Lien Secured Term Loan, Floor 1.00%, Spread E plus 6.25%, Rate 7.25%, Due 4/28/28            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:SmaltoInc.Member          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Household Appliances   Household Appliances Household Appliances    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.25%   6.25% 6.25%    
Interest Rate 7.25%   7.25% 7.25%    
Acquisition Date May 04, 2022          
Maturity Date Apr. 28, 2028   Apr. 28, 2028 Apr. 28, 2028    
Investments, amortized cost $ 6,876          
Investments, at fair value 6,364          
Principal/Share Amount $ 6,659          
Investment, Identifier [Axis]: Smalto Inc., First Lien Secured Term Loan, Floor 1.00%, Spread SF plus 6.00%, Rate 7.18%, Due 4/28/28            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:SmaltoInc.Member          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Household Appliances   Household Appliances Household Appliances    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.00%   6.00% 6.00%    
Interest Rate 9.19%   9.19% 9.19%    
Acquisition Date May 04, 2022          
Maturity Date Apr. 28, 2028   Apr. 28, 2028 Apr. 28, 2028    
Investments, amortized cost $ 995          
Investments, at fair value 996          
Principal/Share Amount $ 1,014          
Investment, Identifier [Axis]: Snap Fitness Holdings, Inc Class A Common Stock            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:SnapFitnessHoldingsIncMember whf:SnapFitnessHoldingsIncMember        
Investment, Type [Extensible Enumeration] us-gaap:CommonClassAMember us-gaap:CommonClassAMember us-gaap:CommonClassAMember us-gaap:CommonClassAMember us-gaap:CommonClassAMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities  
Acquisition Date Jun. 29, 2020 Jun. 29, 2020        
Investments, amortized cost $ 1,941 $ 1,941        
Investments, at fair value $ 157 $ 188        
Percent of net assets 0.05% 0.05% 0.05% 0.05% 0.05%  
Principal/Share Amount $ 2 $ 2        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: Snap Fitness Holdings, Inc First Lien Secured Term Loan C            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:SnapFitnessHoldingsIncMember whf:SnapFitnessHoldingsIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanCMember whf:FirstLienSecuredTermLoanCMember whf:FirstLienSecuredTermLoanCMember whf:FirstLienSecuredTermLoanCMember whf:FirstLienSecuredTermLoanCMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities  
Spread Above Index 9.50% 9.50% 9.50% 9.50% 9.50%  
Interest Rate 9.50% 9.50% 9.50% 9.50% 9.50%  
Acquisition Date Jun. 29, 2020 Jun. 29, 2020        
Investments, amortized cost $ 1,265 $ 1,265        
Investments, at fair value $ 1,084 $ 1,219        
Percent of net assets 0.32% 0.35% 0.32% 0.32% 0.35%  
Principal/Share Amount $ 1,268 $ 1,268        
PIK interest rate 9.50% 9.50% 9.50% 9.50% 9.50%  
Investment, interest rate, paid in cash 0.00% 0.00% 0.00% 0.00% 0.00%  
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Snap Fitness Holdings, Inc Warrants            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:SnapFitnessHoldingsIncMember whf:SnapFitnessHoldingsIncMember        
Investment, Type [Extensible Enumeration] Warrant [Member] Warrant [Member] Warrant [Member] Warrant [Member] Warrant [Member]  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities  
Acquisition Date Jun. 29, 2020 Jun. 29, 2020        
Maturity Date Jun. 28, 2028 Jun. 28, 2028 Jun. 28, 2028 Jun. 28, 2028 Jun. 28, 2028  
Investments, amortized cost $ 793 $ 793        
Investments, at fair value $ 64 $ 76        
Percent of net assets 0.02% 0.02% 0.02% 0.02% 0.02%  
Principal/Share Amount $ 1 $ 1        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: Solar Holdings Bidco Limited First Lien Secured Delayed Draw Loan Interest Rate 8.94            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] Solar Holdings Bidco Limited          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember   whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services   Environmental & Facilities Services Environmental & Facilities Services    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 0.50%   0.50% 0.50%    
Spread Above Index 6.75%   6.75% 6.75%    
Interest Rate 9.74%   9.74% 9.74%    
Acquisition Date Sep. 30, 2022          
Maturity Date Sep. 28, 2029   Sep. 28, 2029 Sep. 28, 2029    
Investments, at fair value $ (10)          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Solar Holdings Bidco Limited First Lien Secured Delayed Draw Loan Interest Rate 9.74            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] Solar Holdings Bidco Limited          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember   whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services   Environmental & Facilities Services Environmental & Facilities Services    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 0.50%   0.50% 0.50%    
Spread Above Index 6.75%   6.75% 6.75%    
Interest Rate 9.74%   9.74% 9.74%    
Acquisition Date Sep. 30, 2022          
Maturity Date Sep. 28, 2029   Sep. 28, 2029 Sep. 28, 2029    
Investments, amortized cost $ 51          
Investments, at fair value $ 51          
Percent of net assets 0.01%   0.01% 0.01%    
Principal/Share Amount $ 53          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Solar Holdings Bidco Limited First Lien Secured Term Loan CDOR            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] Solar Holdings Bidco Limited          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services   Environmental & Facilities Services Environmental & Facilities Services    
Investment, Variable Interest Rate, Type [Extensible Enumeration] CanadianDollarOfferedRateMember   CanadianDollarOfferedRateMember CanadianDollarOfferedRateMember    
Floor 0.50%   0.50% 0.50%    
Spread Above Index 6.75%   6.75% 6.75%    
Interest Rate 10.92%   10.92% 10.92%    
Acquisition Date Sep. 30, 2022          
Maturity Date Sep. 28, 2029   Sep. 28, 2029 Sep. 28, 2029    
Investments, amortized cost $ 2,726          
Investments, at fair value $ 2,704          
Percent of net assets 0.79%   0.79% 0.79%    
Principal/Share Amount     $ 3,839      
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Solar Holdings Bidco Limited First Lien Secured Term Loan SF            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] Solar Holdings Bidco Limited          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services   Environmental & Facilities Services Environmental & Facilities Services    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 0.50%   0.50% 0.50%    
Spread Above Index 6.75%   6.75% 6.75%    
Interest Rate 9.74%   9.74% 9.74%    
Acquisition Date Sep. 30, 2022          
Maturity Date Sep. 28, 2029   Sep. 28, 2029 Sep. 28, 2029    
Investments, amortized cost $ 2,706          
Investments, at fair value $ 2,706          
Percent of net assets 0.79%   0.79% 0.79%    
Principal/Share Amount $ 2,783          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Solar Holdings Bidco Limited First Lien Secured Term Loan SONIA            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] Solar Holdings Bidco Limited          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services   Environmental & Facilities Services Environmental & Facilities Services    
Investment, Variable Interest Rate, Type [Extensible Enumeration] whf:SterlingOvernightIndexAverageMember   whf:SterlingOvernightIndexAverageMember whf:SterlingOvernightIndexAverageMember    
Floor 0.00%   0.00% 0.00%    
Spread Above Index 6.75%   6.75% 6.75%    
Interest Rate 8.94%   8.94% 8.94%    
Acquisition Date Sep. 30, 2022          
Maturity Date Sep. 28, 2029   Sep. 28, 2029 Sep. 28, 2029    
Investments, amortized cost $ 182          
Investments, at fair value $ 184          
Percent of net assets 0.05%   0.05% 0.05%    
Principal/Share Amount | £       £ 169    
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Source Code Holdings, LLC , First Lien Secured Delayed Draw Loan, Floor 1.00%, Spread L plus 6.50%, Rate 7.50%, Due 7/30/2027            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:SourceCodeHoldingsLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredDelayedDrawLoanMember     whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Technology Hardware, Storage & Peripherals     Technology Hardware, Storage & Peripherals  
Floor   1.00%     1.00%  
Spread Above Index   6.50%     6.50%  
Interest Rate   7.50%     7.50%  
Acquisition Date   Aug. 10, 2021        
Maturity Date   Jul. 30, 2027     Jul. 30, 2027  
Investments, at fair value   $ 1        
Investment, Identifier [Axis]: Source Code Holdings, LLC , First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.50%, Rate 7.50%, Due 7/30/2027            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:SourceCodeHoldingsLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Technology Hardware, Storage & Peripherals     Technology Hardware, Storage & Peripherals  
Floor   1.00%     1.00%  
Spread Above Index   6.50%     6.50%  
Interest Rate   7.50%     7.50%  
Acquisition Date   Aug. 10, 2021        
Maturity Date   Jul. 30, 2027     Jul. 30, 2027  
Investments, amortized cost   $ 7,487        
Investments, at fair value   7,489        
Principal/Share Amount   $ 7,629        
Investment, Identifier [Axis]: Source Code Holdings, LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:SourceCodeHoldingsLLCMember whf:SourceCodeHoldingsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 9.63% 7.50% 9.63% 9.63% 7.50%  
Acquisition Date Aug. 10, 2021 Jul. 30, 2021        
Maturity Date Jul. 30, 2027 Jul. 30, 2027 Jul. 30, 2027 Jul. 30, 2027 Jul. 30, 2027  
Investments, at fair value $ 21          
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Source Code Holdings, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:SourceCodeHoldingsLLCMember whf:SourceCodeHoldingsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 9.63% 7.50% 9.63% 9.63% 7.50%  
Acquisition Date Aug. 10, 2021 Jul. 30, 2021        
Maturity Date Jul. 30, 2027 Jul. 30, 2027 Jul. 30, 2027 Jul. 30, 2027 Jul. 30, 2027  
Investments, amortized cost $ 14,899 $ 7,487        
Investments, at fair value 14,970 $ 7,489        
Percent of net assets   2.14%     2.14%  
Principal/Share Amount $ 15,143 $ 7,629        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Stella and Chewy's LLC, First Lien Secured Delayed Draw Loan, Floor 1.00%, Spread L plus 6.75%, Rate 7.75%, Due 12/16/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:StellaandChewysLLCMember whf:StellaandChewysLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Packaged Foods & Meats Packaged Foods & Meats Packaged Foods & Meats Packaged Foods & Meats Packaged Foods & Meats  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 8.75% 6.75% 8.75% 8.75% 6.75%  
Interest Rate 11.92% 7.75% 11.92% 11.92% 7.75%  
Acquisition Date Mar. 26, 2021 Dec. 29, 2020        
Maturity Date Dec. 16, 2025 Dec. 16, 2025 Dec. 16, 2025 Dec. 16, 2025 Dec. 16, 2025  
Investments, amortized cost $ 1,354 $ 1,877        
Investments, at fair value 1,326 1,697        
Principal/Share Amount $ 1,367 $ 1,893        
PIK interest rate 2.00%   2.00% 2.00%    
Investment, interest rate, paid in cash 9.92%   9.92% 9.92%    
Investment, Identifier [Axis]: Stella and Chewy's LLC, First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.75%, Rate 7.75%, Due 12/16/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:StellaandChewysLLCMember whf:StellaandChewysLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Packaged Foods & Meats Packaged Foods & Meats Packaged Foods & Meats Packaged Foods & Meats Packaged Foods & Meats  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 8.75% 6.75% 8.75% 8.75% 6.75%  
Interest Rate 12.24% 7.75% 12.24% 12.24% 7.75%  
Acquisition Date Dec. 29, 2020 Dec. 29, 2020        
Maturity Date Dec. 16, 2025 Dec. 16, 2025 Dec. 16, 2025 Dec. 16, 2025 Dec. 16, 2025  
Investments, amortized cost $ 3,826 $ 5,228        
Investments, at fair value 3,758 4,967        
Principal/Share Amount $ 3,874 $ 5,313        
PIK interest rate 2.00%   2.00% 2.00%    
Investment, interest rate, paid in cash 10.24%   10.24% 10.24%    
Investment, Identifier [Axis]: Sunless, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:SunlessInc.Member          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Personal Products   Personal Products Personal Products    
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member]   London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 6.50%   6.50% 6.50%    
Interest Rate 10.17%   10.17% 10.17%    
Acquisition Date Jun. 30, 2022          
Maturity Date Aug. 13, 2025   Aug. 13, 2025 Aug. 13, 2025    
Investments, amortized cost $ 2,053          
Investments, at fair value $ 2,063          
Percent of net assets 0.60%   0.60% 0.60%    
Principal/Share Amount $ 2,092          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Sunless, Inc., First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 8/13/2024            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:SunlessInc.Member whf:SunlessIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Personal Products Personal Products Personal Products Personal Products Personal Products  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.00% 6.50% 6.50% 6.00%  
Interest Rate 10.17% 7.00% 10.17% 10.17% 7.00%  
Acquisition Date Oct. 21, 2019 Oct. 21, 2019        
Maturity Date Aug. 13, 2025 Aug. 13, 2024 Aug. 13, 2025 Aug. 13, 2025 Aug. 13, 2024  
Investments, at fair value $ 7 $ 14        
Investment, Identifier [Axis]: Sunless, Inc., First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 8/13/2024            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:SunlessInc.Member whf:SunlessIncMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Personal Products Personal Products Personal Products Personal Products Personal Products  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.00% 6.50% 6.50% 6.00%  
Interest Rate 10.17% 7.00% 10.17% 10.17% 7.00%  
Acquisition Date Oct. 21, 2019 Oct. 21, 2019        
Maturity Date Aug. 13, 2025 Aug. 13, 2024 Aug. 13, 2025 Aug. 13, 2025 Aug. 13, 2024  
Investments, amortized cost $ 3,639 $ 4,185        
Investments, at fair value 3,691 4,259        
Principal/Share Amount $ 3,691 $ 4,259        
Investment, Identifier [Axis]: Sure Fit Home Products, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:SureFitHomeProductsLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Home Furnishings     Home Furnishings  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   9.75%     9.75%  
Interest Rate   10.75%     10.75%  
Acquisition Date   Apr. 12, 2021        
Maturity Date   Jul. 13, 2023     Jul. 13, 2023  
Investments, amortized cost   $ 4,828        
Investments, at fair value   $ 4,372        
Percent of net assets   1.25%     1.25%  
Principal/Share Amount   $ 4,912        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: TOUR Intermediate Holdings, LLC, First Lien Secured Delayed Draw Loan, Floor 1.00%, Spread L plus 6.50%, Rate 7.50%, Due 5/15/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:TOURIntermediateHoldingsLLCMember whf:TOURIntermediateHoldingsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Investment Banking & Brokerage Investment Banking & Brokerage Investment Banking & Brokerage Investment Banking & Brokerage Investment Banking & Brokerage  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 9.62% 7.50% 9.62% 9.62% 7.50%  
Acquisition Date May 19, 2020 May 19, 2020        
Maturity Date May 15, 2025 May 15, 2025 May 15, 2025 May 15, 2025 May 15, 2025  
Investments, amortized cost $ 2,493 $ 2,600        
Investments, at fair value 2,505 2,616        
Principal/Share Amount $ 2,505 $ 2,616        
Investment, Identifier [Axis]: TOUR Intermediate Holdings, LLC, First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.50%, Rate 7.50%, Due 5/15/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:TOURIntermediateHoldingsLLCMember whf:TOURIntermediateHoldingsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Investment Banking & Brokerage Investment Banking & Brokerage Investment Banking & Brokerage Investment Banking & Brokerage Investment Banking & Brokerage  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 9.62% 7.50% 9.62% 9.62% 7.50%  
Acquisition Date May 19, 2020 May 19, 2020        
Maturity Date May 15, 2025 May 15, 2025 May 15, 2025 May 15, 2025 May 15, 2025  
Investments, amortized cost $ 3,150 $ 7,343        
Investments, at fair value 3,182 7,438        
Principal/Share Amount $ 3,182 $ 7,438        
Investment, Identifier [Axis]: Team Car Care Holdings, First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:TeamCarCareHoldingsLLCMember whf:TeamCarCareHoldingsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Automotive Retail Automotive Retail Automotive Retail Automotive Retail Automotive Retail  
Investment, Variable Interest Rate, Type [Extensible Enumeration] us-gaap:BaseRateMember us-gaap:BaseRateMember us-gaap:BaseRateMember us-gaap:BaseRateMember us-gaap:BaseRateMember  
Floor 1.00% 1.03% 1.00% 1.00% 1.03%  
Spread Above Index 7.98% 7.98% 7.98% 7.98% 7.98%  
Interest Rate 10.39% 9.02% 10.39% 10.39% 9.02%  
Acquisition Date Feb. 16, 2018 Feb. 16, 2018        
Maturity Date Jun. 28, 2024 Jun. 28, 2024 Jun. 28, 2024 Jun. 28, 2024 Jun. 28, 2024  
Investments, amortized cost $ 14,532 $ 15,193        
Investments, at fair value $ 14,594 $ 15,286        
Percent of net assets 4.25% 4.37% 4.25% 4.25% 4.37%  
Principal/Share Amount $ 14,594 $ 15,286        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Telestream Holdings Corporation First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] Telestream Holdings Corporation [Member]          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember   whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Technology Hardware, Storage & Peripherals   Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 1.00%   1.00% 1.00%    
Spread Above Index 9.25%   9.25% 9.25%    
Interest Rate 12.30%   12.30% 12.30%    
Acquisition Date May 12, 2022          
Maturity Date Oct. 15, 2025   Oct. 15, 2025 Oct. 15, 2025    
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Telestream Holdings Corporation First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] Telestream Holdings Corporation [Member] Telestream Holdings Corporation [Member]        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals  
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 9.25% 8.75% 9.25% 9.25% 8.75%  
Interest Rate 12.30% 9.75% 12.30% 12.30% 9.75%  
Acquisition Date Oct. 15, 2020 Oct. 15, 2020        
Maturity Date Oct. 15, 2025 Oct. 15, 2025 Oct. 15, 2025 Oct. 15, 2025 Oct. 15, 2025  
Investments, amortized cost $ 909 $ 517        
Investments, at fair value $ 935 $ 549        
Percent of net assets 0.27% 0.16% 0.27% 0.27% 0.16%  
Principal/Share Amount $ 927 $ 530        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Telestream Holdings Corporation First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] Telestream Holdings Corporation [Member] Telestream Holdings Corporation [Member]        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals  
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 9.25% 8.75% 9.25% 9.25% 8.75%  
Interest Rate 12.11% 9.75% 12.11% 12.11% 9.75%  
Acquisition Date Oct. 15, 2020 Oct. 15, 2020        
Maturity Date Oct. 15, 2025 Oct. 15, 2025 Oct. 15, 2025 Oct. 15, 2025 Oct. 15, 2025  
Investments, amortized cost $ 15,570 $ 14,713        
Investments, at fair value $ 15,874 $ 15,079        
Percent of net assets 4.63% 4.31% 4.63% 4.63% 4.31%  
Principal/Share Amount $ 15,886 $ 15,079        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Tensar Corporation First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:TensarCorporationMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Construction & Engineering     Construction & Engineering  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.75%     6.75%  
Interest Rate   7.75%     7.75%  
Acquisition Date   Nov. 20, 2020        
Maturity Date   Aug. 20, 2025     Aug. 20, 2025  
Investments, amortized cost   $ 6,797        
Investments, at fair value   $ 7,069        
Percent of net assets   2.02%     2.02%  
Principal/Share Amount   $ 6,930        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Tensar Corporation, First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.75%, Rate 7.75%, Due 8/20/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:TensarCorporationMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Construction & Engineering     Construction & Engineering  
Floor   1.00%     1.00%  
Spread Above Index   6.75%     6.75%  
Interest Rate   7.75%     7.75%  
Acquisition Date   Nov. 24, 2020        
Maturity Date   Aug. 20, 2025     Aug. 20, 2025  
Investments, amortized cost   $ 6,797        
Investments, at fair value   7,069        
Principal/Share Amount   $ 6,930        
Investment, Identifier [Axis]: The Kyjen Company, LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:TheKyjenCompanyLLCMember whf:TheKyjenCompanyLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Household Products Household Products Household Products Household Products Household Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.00% 6.50% 7.00% 7.00% 6.50%  
Interest Rate 9.88% 7.50% 9.88% 9.88% 7.50%  
Acquisition Date Apr. 05, 2021 Apr. 05, 2021        
Maturity Date Apr. 05, 2026 Apr. 05, 2026 Apr. 05, 2026 Apr. 05, 2026 Apr. 05, 2026  
Investments, amortized cost $ 669 $ 380        
Investments, at fair value $ 632 $ 390        
Percent of net assets 0.18% 0.11% 0.18% 0.18% 0.11%  
Principal/Share Amount $ 676 $ 385        
PIK interest rate 0.50%   0.50% 0.50%    
Investment, interest rate, paid in cash 9.38%   9.38% 9.38%    
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: The Kyjen Company, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:TheKyjenCompanyLLCMember whf:TheKyjenCompanyLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Household Products Household Products Household Products Household Products Household Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 7.00% 6.50% 7.00% 7.00% 6.50%  
Interest Rate 10.31% 7.50% 10.31% 10.31% 7.50%  
Acquisition Date Apr. 05, 2021 Apr. 05, 2021        
Maturity Date Apr. 05, 2026 Apr. 05, 2026 Apr. 05, 2026 Apr. 05, 2026 Apr. 05, 2026  
Investments, amortized cost $ 11,228 $ 11,257        
Investments, at fair value $ 10,782 $ 11,383        
Percent of net assets 3.14% 3.25% 3.14% 3.14% 3.25%  
Principal/Share Amount $ 11,347 $ 11,403        
PIK interest rate 0.50%   0.50% 0.50%    
Investment, interest rate, paid in cash 9.81%   9.81% 9.81%    
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Token Buyer, Inc First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments    
Investment, Issuer Name [Extensible Enumeration] whf:TokenBuyerIncMember          
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember   whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember    
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember srt:NorthAmericaMember    
Investment, Industry Sector [Extensible Enumeration] Household Appliances   Household Appliances Household Appliances    
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]    
Floor 0.50%   0.50% 0.50%    
Spread Above Index 6.00%   6.00% 6.00%    
Interest Rate 9.70%   9.70% 9.70%    
Acquisition Date May 26, 2022          
Maturity Date May 31, 2029   May 31, 2029 May 31, 2029    
Investments, amortized cost $ 6,040          
Investments, at fair value $ 6,003          
Percent of net assets 1.75%   1.75% 1.75%    
Principal/Share Amount $ 6,540          
Investment, Restriction Status [true false] true   true true    
Investment, Significant Unobservable Input [true false] true   true true    
Investment, Identifier [Axis]: Trimlite Buyer LLC First Lien Secured Revolving Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:TrimliteBuyerLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredRevolvingLoanMember     whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Building Products     Building Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.50%     6.50%  
Interest Rate   7.50%     7.50%  
Acquisition Date   Jul. 27, 2021        
Maturity Date   Jul. 27, 2026     Jul. 27, 2026  
Investments, amortized cost   $ 161        
Investments, at fair value   $ 161        
Percent of net assets   0.05%     0.05%  
Principal/Share Amount   $ 164        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: Trimlite Buyer LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:TrimliteBuyerLLCMember whf:TrimliteBuyerLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Building Products Building Products Building Products Building Products Building Products  
Investment, Variable Interest Rate, Type [Extensible Enumeration] CanadianDollarOfferedRateMember CanadianDollarOfferedRateMember CanadianDollarOfferedRateMember CanadianDollarOfferedRateMember CanadianDollarOfferedRateMember  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 10.67% 7.50% 10.67% 10.67% 7.50%  
Acquisition Date Jul. 27, 2021 Jul. 27, 2021        
Maturity Date Jul. 27, 2026 Jul. 27, 2026 Jul. 27, 2026 Jul. 27, 2026 Jul. 27, 2026  
Investments, amortized cost $ 17,681 $ 17,975        
Investments, at fair value $ 16,175 $ 17,841        
Percent of net assets 4.72% 5.10% 4.72% 4.72% 5.10%  
Principal/Share Amount   $ 22,977 $ 22,544      
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: True Blue Car Wash, LLC First Lien Secured Delayed Draw Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:TrueBlueCarWashLLCMember whf:TrueBlueCarWashLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.50% 6.82% 6.50% 6.50% 6.82%  
Interest Rate 9.55% 7.82% 9.55% 9.55% 7.82%  
Acquisition Date Oct. 17, 2019 Oct. 17, 2019        
Maturity Date Oct. 17, 2024 Oct. 17, 2024 Oct. 17, 2024 Oct. 17, 2024 Oct. 17, 2024  
Investments, amortized cost $ 4,124 $ 3,073        
Investments, at fair value $ 4,103 $ 3,098        
Percent of net assets 1.20% 0.89% 1.20% 1.20% 0.89%  
Principal/Share Amount $ 4,186 $ 3,103        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: True Blue Car Wash, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:TrueBlueCarWashLLCMember whf:TrueBlueCarWashLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services Specialized Consumer Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] London Interbank Offered Rate (LIBOR) [Member]  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.88% 6.82% 6.88% 6.88% 6.82%  
Interest Rate 10.01% 7.82% 10.01% 10.01% 7.82%  
Acquisition Date Oct. 17, 2019 Oct. 17, 2019        
Maturity Date Oct. 17, 2024 Oct. 17, 2024 Oct. 17, 2024 Oct. 17, 2024 Oct. 17, 2024  
Investments, amortized cost $ 9,876 $ 8,087        
Investments, at fair value $ 9,898 $ 8,130        
Percent of net assets 2.89% 2.32% 2.89% 2.89% 2.32%  
Principal/Share Amount $ 9,969 $ 8,203        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Turnberry Solutions, Inc., First Lien Secured Revolving Loan, Floor 3.25%, Spread P plus 5.00%, Rate 8.25%, Due 9/2/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:TurnberrySolutionsInc.Member whf:TurnberrySolutionsInc.Member        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services  
Floor 1.00% 3.25% 1.00% 1.00% 3.25%  
Spread Above Index 5.00% 5.00% 5.00% 5.00% 5.00%  
Interest Rate 11.25% 8.25% 11.25% 11.25% 8.25%  
Acquisition Date Aug. 10, 2021 Aug. 10, 2021        
Maturity Date Sep. 02, 2026 Sep. 02, 2026 Sep. 02, 2026 Sep. 02, 2026 Sep. 02, 2026  
Investments, amortized cost $ 21 $ 84        
Investments, at fair value 17 85        
Principal/Share Amount $ 22 $ 86        
Investment, Identifier [Axis]: Turnberry Solutions, Inc., First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 9/2/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:TurnberrySolutionsInc.Member whf:TurnberrySolutionsInc.Member        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 6.00% 6.00% 6.00% 6.00% 6.00%  
Interest Rate 9.19% 7.00% 9.19% 9.19% 7.00%  
Acquisition Date Aug. 10, 2021 Aug. 10, 2021        
Maturity Date Sep. 02, 2026 Sep. 02, 2026 Sep. 02, 2026 Sep. 02, 2026 Sep. 02, 2026  
Investments, amortized cost $ 6,008 $ 5,689        
Investments, at fair value 5,973 5,684        
Principal/Share Amount $ 6,103 $ 5,791        
Investment, Identifier [Axis]: Unleashed Brands, LLC, First Lien Secured Delayed Draw Loan, Floor 1.00%, Spread L plus 6.56%, Rate 7.17%, Due 11/19/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:UnleashedBrandsLLCMember whf:UnleashedBrandsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember whf:FirstLienSecuredDelayedDrawLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products Leisure Products  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 5.50% 5.50% 5.50% 5.50% 5.50%  
Interest Rate 8.62% 6.50% 8.62% 8.62% 6.50%  
Acquisition Date Nov. 30, 2021 Nov. 30, 2021        
Maturity Date Nov. 19, 2026 Nov. 19, 2026 Nov. 19, 2026 Nov. 19, 2026 Nov. 19, 2026  
Investments, amortized cost $ 5,091 $ 5,083        
Investments, at fair value 5,151 5,082        
Principal/Share Amount $ 5,133 $ 5,133        
Investment, Identifier [Axis]: Unleashed Brands, LLC, First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.56%, Rate 7.17%, Due 11/19/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:UnleashedBrandsLLCMember whf:UnleashedBrandsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products Leisure Products  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 5.50% 5.50% 5.50% 5.50% 5.50%  
Interest Rate 8.62% 6.50% 8.62% 8.62% 6.50%  
Acquisition Date Nov. 30, 2021 Nov. 30, 2021        
Maturity Date Nov. 19, 2026 Nov. 19, 2026 Nov. 19, 2026 Nov. 19, 2026 Nov. 19, 2026  
Investments, at fair value $ 6          
Investment, Identifier [Axis]: Unleashed Brands, LLC, First lien Secured Term Loan, Floor 1.00%, Spread L plus 5.50%, Rate 7.17%, Due 11/19/2026            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:UnleashedBrandsLLCMember whf:UnleashedBrandsLLCMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products Leisure Products  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 5.50% 5.50% 5.50% 5.50% 5.50%  
Interest Rate 8.62% 6.50% 8.62% 8.62% 6.50%  
Acquisition Date Nov. 30, 2021 Nov. 30, 2021        
Maturity Date Nov. 19, 2026 Nov. 19, 2026 Nov. 19, 2026 Nov. 19, 2026 Nov. 19, 2026  
Investments, amortized cost $ 3,854 $ 3,848        
Investments, at fair value 3,887 3,848        
Principal/Share Amount $ 3,887 $ 3,887        
Investment, Identifier [Axis]: WH Lessor Corp., First Lien Secured Revolving Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 12/26/2024            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:JuniperLandscapingHoldingsLLCMember whf:WHLessorCorpMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember whf:FirstLienSecuredRevolvingLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 5.59% 6.00% 5.59% 5.59% 6.00%  
Interest Rate 8.70% 7.00% 8.70% 8.70% 7.00%  
Acquisition Date Jan. 22, 2020 Jan. 22, 2020        
Maturity Date Dec. 26, 2024 Dec. 26, 2024 Dec. 26, 2024 Dec. 26, 2024 Dec. 26, 2024  
Investments, at fair value $ 5 $ 6        
Investment, Identifier [Axis]: WH Lessor Corp., First Lien Secured Term Loan, Floor 1.00%, Spread L plus 6.00%, Rate 7.00%, Due 12/26/2024            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:JuniperLandscapingHoldingsLLCMember whf:WHLessorCorpMember        
Investment, Type [Extensible Enumeration] whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services  
Floor 1.00% 1.00% 1.00% 1.00% 1.00%  
Spread Above Index 5.59% 6.00% 5.59% 5.59% 6.00%  
Interest Rate 8.70% 7.00% 8.70% 8.70% 7.00%  
Acquisition Date Jan. 22, 2020 Jan. 22, 2020        
Maturity Date Dec. 26, 2024 Dec. 26, 2024 Dec. 26, 2024 Dec. 26, 2024 Dec. 26, 2024  
Investments, amortized cost $ 7,412 $ 6,780        
Investments, at fair value 7,489 6,866        
Principal/Share Amount $ 7,490 $ 6,870        
Investment, Identifier [Axis]: WHF STRS Ohio Senior Loan Fund LLC Equity            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration] whf:WHFSTRSOhioSeniorLoanFundLLCMember whf:WHFSTRSOhioSeniorLoanFundLLCMember        
Investment, Type [Extensible Enumeration] Equity Investments Equity Investments Equity Investments Equity Investments Equity Investments  
Investments, at fair value $ 22,066 $ 15,607       10,167
Investment, Identifier [Axis]: WHF STRS Ohio Senior Loan Fund LLC Interests            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:WHFSTRSOhioSeniorLoanFundMember whf:WHFSTRSOhioSeniorLoanFundMember        
Investment, Type [Extensible Enumeration] whf:LLCInterestsMember whf:LLCInterestsMember whf:LLCInterestsMember whf:LLCInterestsMember whf:LLCInterestsMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Specialized Finance Specialized Finance Specialized Finance Specialized Finance Specialized Finance  
Acquisition Date Jul. 19, 2019 Jul. 19, 2019        
Investments, amortized cost $ 20,000 $ 15,000        
Investments, at fair value $ 22,066 $ 15,607        
Percent of net assets 6.43% 4.46% 6.43% 6.43% 4.46%  
Principal/Share Amount $ 20,000 $ 15,000        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false  
Investment, Identifier [Axis]: WHF STRS Ohio Senior Loan Fund LLC Subordinated Note            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:WHFSTRSOhioSeniorLoanFundLLCMember whf:WHFSTRSOhioSeniorLoanFundLLCMember        
Investment, Type [Extensible Enumeration] Subordinated Debt [Member] Subordinated Debt [Member] Subordinated Debt [Member] Subordinated Debt [Member] Subordinated Debt [Member]  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Specialized Finance Specialized Finance Specialized Finance Specialized Finance Specialized Finance  
Investment, Variable Interest Rate, Type [Extensible Enumeration] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member] London Interbank Offered Rate (LIBOR) [Member]  
Spread Above Index 6.50% 6.50% 6.50% 6.50% 6.50%  
Interest Rate 9.13% 6.61% 9.13% 9.13% 6.61%  
Acquisition Date Jul. 19, 2019 Jul. 19, 2019        
Investments, amortized cost $ 80,000 $ 60,000        
Investments, at fair value $ 80,000 $ 60,000       $ 41,073
Percent of net assets 23.32% 17.16% 23.32% 23.32% 17.16%  
Principal/Share Amount $ 80,000 $ 60,000        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Identifier [Axis]: Westrock Coffee Company, LLC, First Lien Secured Term Loan, Floor 1.50%, Spread L plus 8.50%, Rate Westrock Coffee Company, LLC, Due 2/28/2025            
Schedule of Investments [Line Items]            
Investment, Issuer Name [Extensible Enumeration]   whf:WestrockCoffeeCompanyLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Packaged Foods & Meats     Packaged Foods & Meats  
Floor   1.50%     1.50%  
Spread Above Index   8.50%     8.50%  
Interest Rate   10.00%     10.00%  
Acquisition Date   Mar. 20, 2020        
Maturity Date   Feb. 28, 2025     Feb. 28, 2025  
Investments, amortized cost   $ 9,033        
Investments, at fair value   8,923        
Principal/Share Amount   $ 9,105        
PIK interest rate   0.25%     0.25%  
Investment, interest rate, paid in cash   9.75%     9.75%  
Investment, Identifier [Axis]: What If Holdings, LLC First Lien Secured Term Loan            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments     Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration]   whf:WhatIfHoldingsLLCMember        
Investment, Type [Extensible Enumeration]   whf:FirstLienSecuredTermLoanMember     whf:FirstLienSecuredTermLoanMember  
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember     srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration]   Interactive Media & Services     Interactive Media & Services  
Investment, Variable Interest Rate, Type [Extensible Enumeration]   London Interbank Offered Rate (LIBOR) [Member]     London Interbank Offered Rate (LIBOR) [Member]  
Floor   1.00%     1.00%  
Spread Above Index   6.50%     6.50%  
Interest Rate   7.50%     7.50%  
Acquisition Date   Oct. 02, 2019        
Maturity Date   Oct. 02, 2024     Oct. 02, 2024  
Investments, amortized cost   $ 18,609        
Investments, at fair value   $ 18,759        
Percent of net assets   5.36%     5.36%  
Principal/Share Amount   $ 18,848        
Investment, Restriction Status [true false]   true     true  
Investment, Significant Unobservable Input [true false]   true     true  
Investment, Identifier [Axis]: What If Media Group, LLC Common Units            
Schedule of Investments [Line Items]            
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments  
Investment, Issuer Name [Extensible Enumeration] whf:WhatIfMediaGroupLLCMember whf:WhatIfMediaGroupLLCMember        
Investment, Type [Extensible Enumeration] whf:CommonUnitsMember whf:CommonUnitsMember whf:CommonUnitsMember whf:CommonUnitsMember whf:CommonUnitsMember  
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember  
Investment, Industry Sector [Extensible Enumeration] Interactive Media & Services Interactive Media & Services Interactive Media & Services Interactive Media & Services Interactive Media & Services  
Acquisition Date Jul. 02, 2021 Jul. 02, 2021        
Investments, amortized cost $ 851 $ 850        
Investments, at fair value $ 2,327 $ 1,398        
Percent of net assets 0.68% 0.40% 0.68% 0.68% 0.40%  
Principal/Share Amount $ 851 $ 8        
Investment, Restriction Status [true false] true true true true true  
Investment, Significant Unobservable Input [true false] true true true true true  
Investment, Non-income Producing [true false] false false false false false